Skip to content

Commit

Permalink
Merge pull request #14879 from AUTOMATIC1111/walk_files-extensions-ca…
Browse files Browse the repository at this point in the history
…se-insensitive

util.walk_files extensions case insensitive
  • Loading branch information
AUTOMATIC1111 authored Feb 11, 2024
2 parents 4d46f8c + 542611c commit 8605343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def walk_files(path, allowed_extensions=None):
for filename in sorted(files, key=natural_sort_key):
if allowed_extensions is not None:
_, ext = os.path.splitext(filename)
if ext not in allowed_extensions:
if ext.lower() not in allowed_extensions:
continue

if not shared.opts.list_hidden_files and ("/." in root or "\\." in root):
Expand Down

0 comments on commit 8605343

Please sign in to comment.