diff --git a/find_duplicate_files/find_duplicate_files.py b/find_duplicate_files/find_duplicate_files.py index 03ef789..0837a13 100644 --- a/find_duplicate_files/find_duplicate_files.py +++ b/find_duplicate_files/find_duplicate_files.py @@ -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