diff --git a/find_duplicate_files/find_duplicate_files.py b/find_duplicate_files/find_duplicate_files.py index 047366e..49db942 100644 --- a/find_duplicate_files/find_duplicate_files.py +++ b/find_duplicate_files/find_duplicate_files.py @@ -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'''