How do I verify a file's existence in iCloud?
问题 I know that the file exists, because I can download it, but I need to check to see whether it exists. I have tried using [NSFileManager contentsOfDirectoryAtPath:error:] but it gives me null. I don't understand why that is because I can still download the files that I'm looking for. Maybe it's an incorrect URL, but the URL that I'm using is the one that I printed at creation of my UIDocument that I'm looking for. Maybe I'm using the wrong method? EDIT: I have also tried using NSMetadataQuery,