MCPcopy
hub / github.com/facefusion/facefusion / remove_directory

Function remove_directory

facefusion/filesystem.py:182–186  ·  view source on GitHub ↗
(directory_path : str)

Source from the content-addressed store, hash-verified

180
181
182def remove_directory(directory_path : str) -> bool:
183 if is_directory(directory_path):
184 shutil.rmtree(directory_path, ignore_errors = True)
185 return not is_directory(directory_path)
186 return False
187
188
189def resolve_relative_path(path : str) -> str:

Callers 4

clear_temp_directoryFunction · 0.90
clear_jobsFunction · 0.90
test_remove_directoryFunction · 0.90

Calls 1

is_directoryFunction · 0.85

Tested by 1

test_remove_directoryFunction · 0.72