访问 iOS 中的私人文件夹
Access private folder in iOS
我有一些文件,它们在下载后存储在以下位置 folder/path
/private/var/mobile/Containers/Data/Application/5527BBC6-651F-4E29-A3ED-E31FABCE958F/Documents/7A7D61AE-B368-4999-8A59-C88AD5AA07CD.pdf
在 /private/
文件夹中。
如何访问此文件?无论我无法访问它们,我是否缺少应用程序中的某些权限?
如何创建 URL 以访问 /private/
路径中的文件?
感谢您的帮助
应用程序无法访问不在其自身容器中的文件 - 应用程序位于沙盒中。
查看此 documentation 了解更多信息
具体来说:
An app is generally prohibited from accessing or creating files
outside its container directories. One exception to this rule is when
an app uses public system interfaces to access things such as the
user’s contacts or music.
我有一些文件,它们在下载后存储在以下位置 folder/path
/private/var/mobile/Containers/Data/Application/5527BBC6-651F-4E29-A3ED-E31FABCE958F/Documents/7A7D61AE-B368-4999-8A59-C88AD5AA07CD.pdf
在 /private/
文件夹中。
如何访问此文件?无论我无法访问它们,我是否缺少应用程序中的某些权限?
如何创建 URL 以访问 /private/
路径中的文件?
感谢您的帮助
应用程序无法访问不在其自身容器中的文件 - 应用程序位于沙盒中。
查看此 documentation 了解更多信息
具体来说:
An app is generally prohibited from accessing or creating files outside its container directories. One exception to this rule is when an app uses public system interfaces to access things such as the user’s contacts or music.