Reputation: 2749
As the title says, my NSMetadataQueries to iCloud sometimes show files that I just deleted from iCloud.
I can even download them after being deleted. Does anybody know what causes the queries to return wrong results / what can I do to prevent this?
Upvotes: 4
Views: 337
Reputation: 6957
I just noticed the same issue. I logged the document urls and saw that the documents where in a folder named .Trash
.
Here's how to reproduce this:
NSMetadataItem
now contains .TrashSo the solution is to check if the file is in the trash and hide it.
Upvotes: 1