mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-03-14 05:05:22 +01:00
diffybot now deletes folders
This commit is contained in:
parent
5bc039ca51
commit
8fa16a76f5
1 changed files with 2 additions and 1 deletions
|
@ -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])
|
||||
shutil.rmtree(path + "/" + ld[i])
|
Loading…
Reference in a new issue