Fix Files not remembering files sometimes

This commit is contained in:
Joscha 2025-11-03 02:28:02 +01:00
parent 208ccb0de2
commit 5f86e90dd7

View file

@ -135,6 +135,7 @@ class Files(Module):
cur_hash = hash_file(path) cur_hash = hash_file(path)
target_hash = hash_data(content) target_hash = hash_data(content)
if cur_hash == target_hash: if cur_hash == target_hash:
self._file_db.add_hash(path, target_hash)
return return
relative_path = path.relative_to(self._root, walk_up=True) relative_path = path.relative_to(self._root, walk_up=True)