diff options
author | Jordan <me@jordan.im> | 2020-08-15 15:40:35 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2020-08-15 15:40:35 -0700 |
commit | 76cf205696a95e4e812936a6f5aa52f1fd5eb6fd (patch) | |
tree | aeab57ee20413ebbac07db94ea34c9781e5a4c56 | |
parent | 1a9ea6a3298be7bff6c7bcbd7ccbac8dded9dfc5 (diff) | |
download | roka-76cf205696a95e4e812936a6f5aa52f1fd5eb6fd.tar.gz roka-76cf205696a95e4e812936a6f5aa52f1fd5eb6fd.zip |
hash/process tracks in order; sorted os.listdir()
-rwxr-xr-x | rebuild.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |