aboutsummaryrefslogtreecommitdiff
path: root/rebuild.py
diff options
context:
space:
mode:
Diffstat (limited to 'rebuild.py')
-rwxr-xr-xrebuild.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rebuild.py b/rebuild.py
index 5f2e228..d9144ca 100755
--- a/rebuild.py
+++ b/rebuild.py
@@ -130,7 +130,7 @@ class Books:
# hash of each supported track in directory path
folder_hash = hashlib.md5()
- for f in os.listdir(path):
+ for f in sorted(os.listdir(path)):
# must be a file and have a supported extension
file_path = os.path.join(path, f)
if not os.path.isfile(file_path) or not f.split('.')[-1] in ext: