Skip to content

Commit

Permalink
use f instead of file
Browse files Browse the repository at this point in the history
  • Loading branch information
MustafaJafar committed Feb 11, 2025
1 parent 99f60e1 commit 9791f59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/ayon_core/lib/path_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ def version_up(filepath):
index += len(new_label)
clash_basename = clash_basename[:index]

for file in os.scandir(dirname):
if file.name.endswith(ext) and file.name.startswith(clash_basename):
for f in os.scandir(dirname):
if f.name.endswith(ext) and f.name.startswith(clash_basename):
log.info("Skipping existing version %s" % new_label)
return version_up(new_filename)

Expand Down

0 comments on commit 9791f59

Please sign in to comment.