MCPcopy Create free account
hub / github.com/chenhaoxing/HDNet / mkdir

Function mkdir

util/util.py:96–103  ·  view source on GitHub ↗

create a single empty directory if it didn't exist Parameters: path (str) -- a single directory path

(path)

Source from the content-addressed store, hash-verified

94
95
96def mkdir(path):
97 """create a single empty directory if it didn't exist
98
99 Parameters:
100 path (str) -- a single directory path
101 """
102 if not os.path.exists(path):
103 os.makedirs(path)
104
105def copy_state_dict(cur_state_dict, pre_state_dict, prefix='', load_name=None):
106 def _get_params(key):

Callers 1

mkdirsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected