remove encode

This commit is contained in:
Antonio J. Delgado 2023-01-25 14:50:07 +02:00
parent c90a0561d4
commit 865d0c2a96

View file

@ -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(