MCPcopy Create free account
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / mkdirs

Function mkdirs

pix2pix/util/util.py:85–95  ·  view source on GitHub ↗

create empty directories if they don't exist Parameters: paths (str list) -- a list of directory paths

(paths)

Source from the content-addressed store, hash-verified

83
84
85def mkdirs(paths):
86 """create empty directories if they don't exist
87
88 Parameters:
89 paths (str list) -- a list of directory paths
90 """
91 if isinstance(paths, list) and not isinstance(paths, str):
92 for path in paths:
93 mkdir(path)
94 else:
95 mkdir(paths)
96
97
98def mkdir(path):

Callers

nothing calls this directly

Calls 1

mkdirFunction · 0.85

Tested by

no test coverage detected