Sort files on reading

This commit is contained in:
2018-03-06 17:45:35 +09:00
parent 4ef2e15aec
commit 869a2a647e

View File

@@ -667,7 +667,7 @@ for xmp_file_source in args.xmp_sources:
# if there are folders, dive into them # if there are folders, dive into them
# or glob glob all .xmp files + directory # or glob glob all .xmp files + directory
for root, dirs, files in os.walk(xmp_file_source): for root, dirs, files in os.walk(xmp_file_source):
for file in files: for file in sorted(files):
# but has no .BK. inside # but has no .BK. inside
if file.endswith(".xmp") and ".BK." not in file: if file.endswith(".xmp") and ".BK." not in file:
if "{}/{}".format(root, file) not in work_files: if "{}/{}".format(root, file) not in work_files: