MCPcopy Create free account
hub / github.com/VCIP-RGBD/DFormer / ensure_dir

Function ensure_dir

utils/pyt_utils.py:245–252  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

243
244
245def ensure_dir(path):
246 if not os.path.isdir(path):
247 try:
248 sleeptime = random.randint(0, 3)
249 time.sleep(sleeptime)
250 os.makedirs(path)
251 except:
252 print("conflict !!!")
253
254
255def _dbg_interactive(var, value):

Callers 5

__init__Method · 0.90
link_tbMethod · 0.90
__init__Method · 0.90
get_loggerFunction · 0.85

Calls

no outgoing calls

Tested by 1

__init__Method · 0.72