MCPcopy
hub / github.com/hanzhanggit/StackGAN / mkdir_p

Function mkdir_p

misc/utils.py:68–75  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

66
67
68def mkdir_p(path):
69 try:
70 os.makedirs(path)
71 except OSError as exc: # Python >2.5
72 if exc.errno == errno.EEXIST and os.path.isdir(path):
73 pass
74 else:
75 raise

Callers 6

run_exp.pyFile · 0.90
save_super_imagesMethod · 0.90
save_super_imagesFunction · 0.90
save_super_imagesFunction · 0.90
run_exp.pyFile · 0.90
save_super_imagesMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected