我如何才能访问 iOS 的“~/Applications”?

How i can get access for '~/Applications' of iOS?

我正在尝试使用以下方式进入此文件夹:

import os  
location=os.chdir('/Applications')  
for file in os.listdir(location):  
     print(file)

RETURN: 'Opesation not permitted'

当我 运行 在 pythonista 应用程序中,出现警告消息

但是当我交替使用 运行 它但使用基本根文件目录时,它会显示所有文件夹

import os  
location=os.chdir('/')  
for file in os.listdir(location):
    print(file)

RETURN: 。文件 .mb 应用 开发商 图书馆 系统 垃圾桶 核心 开发 ETC 私人的 sbin tmp 用户名 变量

你做不到。 source

For security purposes, an iOS app’s interactions with the file system are limited to the directories inside the app’s sandbox directory.

您应该只能访问某些文件夹

During installation of a new app, the installer creates a number of container directories for the app inside the sandbox directory. Each container directory has a specific role.

这是您唯一的工作区域

iOS apps always run in a sandbox