mirror of
https://github.com/kevinveenbirkenbach/duplicate-file-handler.git
synced 2024-11-14 18:11:03 +01:00
updated progress
This commit is contained in:
parent
0c49ca0fcc
commit
62c6443858
2
main.py
2
main.py
@ -14,7 +14,7 @@ def md5sum(filename):
|
|||||||
def find_duplicates(directories, file_type):
|
def find_duplicates(directories, file_type):
|
||||||
hashes = defaultdict(list)
|
hashes = defaultdict(list)
|
||||||
for directory in directories:
|
for directory in directories:
|
||||||
for root, dirs, files in tqdm(os.walk(directory, followlinks=False), desc="Indexing files", unit="dir"):
|
for root, dirs, files in tqdm(os.walk(directory, followlinks=False), desc=f"Indexing files of {directory}", unit="dir"):
|
||||||
for filename in files:
|
for filename in files:
|
||||||
if file_type and not filename.endswith(file_type):
|
if file_type and not filename.endswith(file_type):
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user