Changed unit

This commit is contained in:
Kevin Veen-Birkenbach 2023-11-14 13:47:20 +01:00
parent 62c6443858
commit 5c4afe2655

View File

@ -14,7 +14,7 @@ def md5sum(filename):
def find_duplicates(directories, file_type):
hashes = defaultdict(list)
for directory in directories:
for root, dirs, files in tqdm(os.walk(directory, followlinks=False), desc=f"Indexing files of {directory}", unit="dir"):
for root, dirs, files in tqdm(os.walk(directory, followlinks=False), desc=f"Indexing files of {directory}", unit="Directories"):
for filename in files:
if file_type and not filename.endswith(file_type):
continue