ICloud - NSMetadataQuery returns old results showing deleted files
1 answer
I just noticed the same problem. I registered the urls of the document and saw that the documents that are in a folder named .Trash
.
Here's how to reproduce that:
- I delete a document in iCloud Drive on my Mac in Finder
- β Document disappears from my Mac
- The document is still showing on iOS, but the path for
NSMetadataItem
now contains .Trash - If I empty the trash bin on my Mac the file disappears from my iOS app
So the solution is to check if the file is in the trash and hide it.
0
source to share