These last days I've been trying to organize my photo collection. I realized that some of them were in more than one folder, that is, some photos were duplicated or triplicated on my hard drive.
September 25, 2010
So, I wrote a python script to solve my problem, and here it is:
print "DEBUG: looking for images at "+dirname
for root, dirs, files in os.walk(dirname):
for file in files:
if not list_of_images.has_key(md5sum):
print "DEBUG: removing " + filename
if __name__ == '__main__':
print "Usage " + sys.argv + "dirname"