MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / clear_path

Function clear_path

python-package/setup.py:63–71  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

61
62
63def clear_path(path):
64 if os.path.isdir(path):
65 contents = os.listdir(path)
66 for file_name in contents:
67 file_path = os.path.join(path, file_name)
68 if os.path.isfile(file_path):
69 os.remove(file_path)
70 else:
71 shutil.rmtree(file_path)
72
73
74def silent_call(cmd, raise_error=False, error_msg=''):

Callers 1

compile_cppFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected