mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-29 18:51:31 +00:00
walk_files extensions case insensitive
This commit is contained in:
@@ -42,7 +42,7 @@ def walk_files(path, allowed_extensions=None):
|
|||||||
for filename in sorted(files, key=natural_sort_key):
|
for filename in sorted(files, key=natural_sort_key):
|
||||||
if allowed_extensions is not None:
|
if allowed_extensions is not None:
|
||||||
_, ext = os.path.splitext(filename)
|
_, ext = os.path.splitext(filename)
|
||||||
if ext not in allowed_extensions:
|
if ext.lower() not in allowed_extensions:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if not shared.opts.list_hidden_files and ("/." in root or "\\." in root):
|
if not shared.opts.list_hidden_files and ("/." in root or "\\." in root):
|
||||||
|
|||||||
Reference in New Issue
Block a user