add counter

This commit is contained in:
Antonio J. Delgado 2023-01-25 14:56:09 +02:00
parent c75d875a27
commit ccea4831aa

View file

@ -33,7 +33,11 @@ class find_duplicate_files:
second_files = self.recursive_scandir(self.second_directory)
self._log.debug(f"Found {len(second_files)} files in second directory '{second_directory}'")
total = len(first_files)
count = 0
for hash in first_files:
count += 1
print(f"{count}/{total}")
if hash in second_files:
print(f"#File '{first_files[hash]}' is dupe with '{second_files[hash]}'.")
print(f"rm '{first_files[hash]}'")