最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

how can i delete outside of SandBox in Swift - Stack Overflow

programmeradmin3浏览0评论

I have two questions. These days I make fileviewer app. and we use SmartOffice.

  1. we choose file at UIDocumentPickerViewController so we can active Security Scope so we can access to these file. when edit a file with SmartOffice, SmartOffice create temporary file at same directory, and our app should delete it according to the app's policy. but the temporary file cannot delete because it is new file to us so we don't have permission. when I do fileManager.removeItem log message say "you cannot delete because there is no permission to connect with ${~filename}" Is There any way to delete file that is locate at outside of sandbox?

  2. I use bookmark data, resolve to original url and use NSFilePresenter to watching file rename or change. Does NSFilePresenter automatically matching with metadata that has been change due to rename file or something?

发布评论

评论列表(0)

  1. 暂无评论