aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
Diffstat (limited to 'gn3')
-rw-r--r--gn3/file_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/file_utils.py b/gn3/file_utils.py
index 79e6854..d6e1c66 100644
--- a/gn3/file_utils.py
+++ b/gn3/file_utils.py
@@ -13,7 +13,7 @@ def get_dir_hash(directory: str) -> str:
if not os.path.exists(directory):
raise FileNotFoundError
for root, _, files in os.walk(directory):
- for names in files:
+ for names in sorted(files):
file_path = os.path.join(root, names)
with open(file_path, "rb") as file_:
for buf in iter(partial(file_.read, 4096), b''):