[-] Less verbose

This commit is contained in:
Azalea 2024-05-16 21:48:44 +08:00
parent b2afcb8a64
commit bfeca1535b

View file

@ -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: