diff --git a/find_duplicate_files/find_duplicate_files.py b/find_duplicate_files/find_duplicate_files.py index e1caa06..ecafbe0 100644 --- a/find_duplicate_files/find_duplicate_files.py +++ b/find_duplicate_files/find_duplicate_files.py @@ -48,7 +48,7 @@ class find_duplicate_files: hash = hashlib.sha256() with open(file.path, 'rb') as file_pointer: file_content = file_pointer.read() - hash.update(file_content.encode('utf-8')) + hash.update(file_content) files[hash.hexdigest()] = file.path elif file.is_dir(follow_symlinks=False): more_files = self.recursive_scandir(