change to log in info

This commit is contained in:
Antonio J. Delgado 2023-01-25 14:59:24 +02:00
parent 40f7c04004
commit ffb4e0ee37

View file

@ -37,10 +37,10 @@ class find_duplicate_files:
count = 0
for hash in first_files:
count += 1
print(f"# Checking file {count} of {total}")
self._log.info(f"# Checking file {count} of {total}")
if hash in second_files:
print(f"#File '{first_files[hash]}' is dupe with '{second_files[hash]}'.")
print(f"rm '{first_files[hash]}'")
self._log.info(f"#File '{first_files[hash]}' is dupe with '{second_files[hash]}'.")
self._log.info(f"rm '{first_files[hash]}'")
def recursive_scandir(self, path, ignore_hidden_files=True):
''' Recursively scan a directory for files'''