My app allow users to choose imgs and associate them to some text.
When the user choose an image from the photo roll, I copy it in the Documents directory.
As the user should choose the same img associating it to the same text or another one, how could I avoid to save duplicates of the same image?
I can't simply use fileExistsAtPath, because the name is generated on the fly.
Is there a way to know if the user is choosing an image already saved in the documents dir?