mirror of
https://github.com/hykilpikonna/hyfetch.git
synced 2026-04-25 16:08:35 -05:00
[-] Less verbose
This commit is contained in:
parent
b2afcb8a64
commit
bfeca1535b
|
|
@ -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 New Issue
Block a user