Fix Files not remembering files sometimes
This commit is contained in:
parent
208ccb0de2
commit
5f86e90dd7
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue