Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正如标题所说,我到 iCloud 的 NSMetadataQueries 有时会显示我刚刚从 iCloud 中删除的文件。
我什至可以在被删除后下载它们。有谁知道是什么导致查询返回错误的结果/我能做些什么来防止这种情况?
我刚刚注意到同样的问题。我记录了文档 url,并看到文档位于名为.Trash.
.Trash
以下是如何重现这一点:
NSMetadataItem
所以解决方案是检查文件是否在垃圾箱中并将其隐藏。