1)Specify the filepath appropriately! This will be the directory from where you'll want to remove the duplicates.
2)In case of mobiles where "-1" is the extension instead of "-Copy", in that case the regex code(just a single line) should be a bit modified to
x = re.compile(r'(.)- 1.jpg')
instead of
x = re.compile(r'(.)- Copy.jpg')
ganeshjadhav221b / duplicate-image-remover Goto Github PK
View Code? Open in Web Editor NEWOften while working, we come up with duplicates, duplicates as in same copies of the files that get created(or we create) that will be of no/less use once the work is done . Here in this project I've used python (regex) to remove all such files with one go