upd: return valid file path

This commit is contained in:
Dineshkarthik 2020-07-21 19:35:20 +02:00
parent 0d28704910
commit cf4d90621e

View file

@ -36,4 +36,5 @@ def manage_duplicate_file(file_path: str):
old_file_md5: str = md5(open(old_file_path, "rb").read()).hexdigest()
if current_file_md5 == old_file_md5:
os.remove(file_path)
break
return old_file_path
return file_path