From 869a2a647efaf458868e279f81144c0bb2cd5629 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Tue, 6 Mar 2018 17:45:35 +0900 Subject: [PATCH] Sort files on reading --- bin/reverse_geolocate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/reverse_geolocate.py b/bin/reverse_geolocate.py index 48a67e4..07a6f0b 100755 --- a/bin/reverse_geolocate.py +++ b/bin/reverse_geolocate.py @@ -667,7 +667,7 @@ for xmp_file_source in args.xmp_sources: # if there are folders, dive into them # or glob glob all .xmp files + directory for root, dirs, files in os.walk(xmp_file_source): - for file in files: + for file in sorted(files): # but has no .BK. inside if file.endswith(".xmp") and ".BK." not in file: if "{}/{}".format(root, file) not in work_files: