[-] Less verbose
This commit is contained in:
parent
b2afcb8a64
commit
bfeca1535b
1 changed files with 3 additions and 6 deletions
|
@ -60,12 +60,9 @@ if __name__ == '__main__':
|
|||
new_record = []
|
||||
for file in order:
|
||||
file = base_path / file.split(',')[0]
|
||||
if file.is_file():
|
||||
digest, length = rehash(file)
|
||||
new_record.append(f"{str(file.relative_to(base_path)).replace("\\", "/")},{digest},{length}")
|
||||
processed.add(file)
|
||||
else:
|
||||
print(f"Ignoring {file} as it is not a file")
|
||||
digest, length = rehash(file)
|
||||
new_record.append(f"{str(file.relative_to(base_path)).replace("\\", "/")},{digest},{length}")
|
||||
processed.add(file)
|
||||
|
||||
for file in base_path.rglob('*'):
|
||||
if file.is_file() and file not in processed:
|
||||
|
|
Loading…
Reference in a new issue