From 62dc1e12502bd52279e6e0321858f2fd1a3d9c27 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 14 Nov 2023 13:00:18 +0100 Subject: [PATCH] Solved filetype bug --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 727004e..c98122e 100644 --- a/main.py +++ b/main.py @@ -10,7 +10,7 @@ def md5sum(filename): hash_md5.update(chunk) return hash_md5.hexdigest() -def find_duplicates(directories, file_type=None): +def find_duplicates(directories, file_type): hashes = defaultdict(list) for directory in directories: for root, dirs, files in os.walk(directory, followlinks=False): @@ -60,7 +60,7 @@ def handle_modification(files, modification, mode, apply_to): def main(args): directories = args.directories apply_to = args.apply_to or directories - duplicates = find_duplicates(directories) + duplicates = find_duplicates(directories,args.file_type) if not duplicates: print("No duplicates found.")