encode utf8
This commit is contained in:
parent
9ef26eb0c1
commit
077df73003
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue