How do I compare files?

If I have a UIDocument file in the local sandbox storage Documents directory and another file in ICloud with the same file name, how do I tell whether those are considered copies of the same file or two different files with the same file name?


I have retrieved the resource values of both files, but the local file gives nil for document identifier.

I'm quite sure you need to compare the files content. Depending on wether you use an NSData object or an NSFileWrapper there are different ways to compare files for equality.


Dirk

How do I compare files?
 
 
Q