From 8fa16a76f53a9c8f7a463433cee5930cb64696c7 Mon Sep 17 00:00:00 2001 From: Marco Realacci Date: Tue, 22 Nov 2022 23:55:35 +0100 Subject: [PATCH] diffybot now deletes folders --- diffybot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/diffybot.py b/diffybot.py index ff13352..555c79f 100644 --- a/diffybot.py +++ b/diffybot.py @@ -1,6 +1,7 @@ # A python helper script that finds duplicates import os +import shutil path = input("Specify the path: ") @@ -60,4 +61,4 @@ for dup in result: print("Keeping " + ld[i]) continue print("Deleting", ld[i]) - os.rmdir(path + "/" + ld[i]) \ No newline at end of file + shutil.rmtree(path + "/" + ld[i]) \ No newline at end of file