diffybot now deletes folders

This commit is contained in:
Marco Realacci 2022-11-22 23:55:35 +01:00
parent 5bc039ca51
commit 8fa16a76f5

View file

@ -1,6 +1,7 @@
# A python helper script that finds duplicates # A python helper script that finds duplicates
import os import os
import shutil
path = input("Specify the path: ") path = input("Specify the path: ")
@ -60,4 +61,4 @@ for dup in result:
print("Keeping " + ld[i]) print("Keeping " + ld[i])
continue continue
print("Deleting", ld[i]) print("Deleting", ld[i])
os.rmdir(path + "/" + ld[i]) shutil.rmtree(path + "/" + ld[i])