add path
This commit is contained in:
parent
eccebcdc4f
commit
9ef26eb0c1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue