in reply to Re^4: Renaming an image file
in thread Renaming an image file

If you have 2 files with the same content and you've detected them, then you've saved some space

Replies are listed 'Best First'.
Re^6: Renaming an image file
by JavaFan (Canon) on Nov 28, 2010 at 12:15 UTC
    Until you want to delete one of them and keep the other. Unless you change your archival system so that it can deal with shared images, it'll be ill advised to silently have them point to the same physical structure.
      fore sure, but if that is the case, why store it in the same directory? or why rename the file at all?
        I neither know, nor I care. But just because *I* wouldn't do it, or I cannot imagine why someone else does it, I'm not going to recommend a solution to a problem that may lead to lost data. I think it's very bad advice if on the question "how do I create unique filenames", one gives a solution that may lead to data loss.