This commit is contained in:
Antonio J. Delgado 2023-01-25 14:43:29 +02:00
parent eccebcdc4f
commit 9ef26eb0c1

View file

@ -46,7 +46,7 @@ class find_duplicate_files:
if not file.name.startswith('.'):
if file.is_file():
hash = hashlib.sha256()
with open(file.name, 'r') as file_pointer:
with open(file.path, 'r') as file_pointer:
file_content = file_pointer.read()
hash.update(file_content)
files[hash.hexdigest()] = file.path