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?
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?
Copyright © 2021 Jogjafile Inc.
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.