MCPcopy Create free account
hub / github.com/dblalock/bolt / remove

Function remove

experiments/python/files.py:71–76  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

69
70
71def remove(path):
72 if os.path.exists(path):
73 try:
74 os.remove(path)
75 except (OSError):
76 shutil.rmtree(path)
77
78
79def force_create_dir(dir):

Callers 3

popScopedMessageMethod · 0.85
popScopedMessageMethod · 0.85
force_create_dirFunction · 0.85

Calls

no outgoing calls

Tested by 1

popScopedMessageMethod · 0.68