add counter
This commit is contained in:
parent
c75d875a27
commit
ccea4831aa
1 changed files with 4 additions and 0 deletions
|
@ -33,7 +33,11 @@ class find_duplicate_files:
|
||||||
second_files = self.recursive_scandir(self.second_directory)
|
second_files = self.recursive_scandir(self.second_directory)
|
||||||
self._log.debug(f"Found {len(second_files)} files in second directory '{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:
|
for hash in first_files:
|
||||||
|
count += 1
|
||||||
|
print(f"{count}/{total}")
|
||||||
if hash in second_files:
|
if hash in second_files:
|
||||||
print(f"#File '{first_files[hash]}' is dupe with '{second_files[hash]}'.")
|
print(f"#File '{first_files[hash]}' is dupe with '{second_files[hash]}'.")
|
||||||
print(f"rm '{first_files[hash]}'")
|
print(f"rm '{first_files[hash]}'")
|
||||||
|
|
Loading…
Reference in a new issue