mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-14 06:03:29 +08:00
Update folder_paths.py
This commit is contained in:
parent
6e985b2a43
commit
32004b30ea
@ -160,7 +160,6 @@ def filter_files_content_types(files: list[str], content_types: List[Literal["im
|
||||
extension = file.split('.')[-1]
|
||||
if extension not in extension_mimetypes_cache:
|
||||
mime_type, _ = mimetypes.guess_type(file, strict=False)
|
||||
print(file, mime_type)
|
||||
if not mime_type:
|
||||
continue
|
||||
content_type = mime_type.split('/')[0]
|
||||
@ -170,7 +169,6 @@ def filter_files_content_types(files: list[str], content_types: List[Literal["im
|
||||
|
||||
if content_type in content_types:
|
||||
result.append(file)
|
||||
print("res", result, files)
|
||||
return result
|
||||
|
||||
# determine base_dir rely on annotation if name is 'filename.ext [annotation]' format
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user