From cf4d90621ec75462221439195afee96563e8d01a Mon Sep 17 00:00:00 2001 From: Dineshkarthik Date: Tue, 21 Jul 2020 19:35:20 +0200 Subject: [PATCH] upd: return valid file path --- utils/file_management.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/file_management.py b/utils/file_management.py index ca04816..99e50f4 100644 --- a/utils/file_management.py +++ b/utils/file_management.py @@ -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