[F] Fix rehash
This commit is contained in:
parent
882dafd11b
commit
4707704330
1 changed files with 4 additions and 3 deletions
|
@ -60,9 +60,10 @@ if __name__ == '__main__':
|
||||||
new_record = []
|
new_record = []
|
||||||
for file in order:
|
for file in order:
|
||||||
file = base_path / file.split(',')[0]
|
file = base_path / file.split(',')[0]
|
||||||
digest, length = rehash(file)
|
if file.exists():
|
||||||
new_record.append(f"{str(file.relative_to(base_path)).replace("\\", "/")},{digest},{length}")
|
digest, length = rehash(file)
|
||||||
processed.add(file)
|
new_record.append(f"{str(file.relative_to(base_path)).replace("\\", "/")},{digest},{length}")
|
||||||
|
processed.add(file)
|
||||||
|
|
||||||
for file in base_path.rglob('*'):
|
for file in base_path.rglob('*'):
|
||||||
if file.is_file() and file not in processed:
|
if file.is_file() and file not in processed:
|
||||||
|
|
Loading…
Reference in a new issue