encode utf8

This commit is contained in:
Antonio J. Delgado 2023-01-25 14:44:01 +02:00
parent 9ef26eb0c1
commit 077df73003

View file

@ -48,7 +48,7 @@ class find_duplicate_files:
hash = hashlib.sha256()
with open(file.path, 'r') as file_pointer:
file_content = file_pointer.read()
hash.update(file_content)
hash.update(file_content.encode('utf-8'))
files[hash.hexdigest()] = file.path
elif file.is_dir(follow_symlinks=False):
more_files = self.recursive_scandir(