Skip to content

Commit

Permalink
More proper fix for #3484.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed May 16, 2024
1 parent 2d41642 commit 58f8388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion folder_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def compute_vars(input, image_width, image_height):
raise Exception(err)

try:
counter = max(filter(lambda a: a[1][:-1] == filename and a[1][-1] == "_", map(map_filename, os.listdir(full_output_folder))))[0] + 1
counter = max(filter(lambda a: os.path.normcase(a[1][:-1]) == os.path.normcase(filename) and a[1][-1] == "_", map(map_filename, os.listdir(full_output_folder))))[0] + 1
except ValueError:
counter = 1
except FileNotFoundError:
Expand Down

0 comments on commit 58f8388

Please sign in to comment.