MCPcopy
hub / github.com/facefusion/facefusion / create_directory

Function create_directory

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

Source from the content-addressed store, hash-verified

173
174
175def create_directory(directory_path : str) -> bool:
176 if directory_path and not is_file(directory_path):
177 os.makedirs(directory_path, exist_ok = True)
178 return is_directory(directory_path)
179 return False
180
181
182def remove_directory(directory_path : str) -> bool:

Callers 6

create_temp_directoryFunction · 0.90
init_jobsFunction · 0.90
test_create_directoryFunction · 0.90
test_remove_directoryFunction · 0.90

Calls 2

is_fileFunction · 0.85
is_directoryFunction · 0.85

Tested by 2

test_create_directoryFunction · 0.72
test_remove_directoryFunction · 0.72