From 80fd7f844b7324a589207768d53f16a58ff1790b Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sat, 3 Sep 2022 23:54:45 -0600 Subject: [PATCH] Fixes --- main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index cfa71ff..f949256 100644 --- a/main.py +++ b/main.py @@ -26,7 +26,7 @@ filenames.sort(key=os.path.getsize, reverse=True) print('Deduplicating by md5 hash...') for filename in filenames: - # hash first 65536 bytes of each file first + # hash first 65536 bytes of each file only CHUNK_SIZE = 65536 hasher = hashlib.md5() @@ -59,8 +59,8 @@ count = 0 total = len(filenames) for filename in filenames: - print('Hashing file', count, '/', total, end='\r') count += 1 + print('Hashing file', count, '/', total, end='\r') if filename in delete: continue @@ -85,4 +85,3 @@ print('Found', len(delete), 'total duplicate files.') print('Deleting...') for dupe in delete: os.remove(dupe) -