MCPcopy
hub / github.com/facefusion/facefusion / resolve_file_paths

Function resolve_file_paths

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

Source from the content-addressed store, hash-verified

139
140
141def resolve_file_paths(directory_path : str) -> List[str]:
142 file_paths : List[str] = []
143
144 if is_directory(directory_path):
145 file_names_and_extensions = sorted(os.listdir(directory_path))
146
147 for file_name_and_extension in file_names_and_extensions:
148 if not file_name_and_extension.startswith(('.', '__')):
149 file_path = os.path.join(directory_path, file_name_and_extension)
150 file_paths.append(file_path)
151
152 return file_paths
153
154
155def resolve_file_pattern(file_pattern : str) -> List[str]:

Callers 10

force_downloadFunction · 0.90
create_uis_programFunction · 0.90
apply_argsFunction · 0.90
sort_processorsFunction · 0.90
choices.pyFile · 0.90
create_static_model_setFunction · 0.90
test_resolve_file_pathsFunction · 0.90

Calls 1

is_directoryFunction · 0.85

Tested by 1

test_resolve_file_pathsFunction · 0.72