I'm trying to enter to this folder using:
import os
location=os.chdir('/Applications')
for file in os.listdir(location):
print(file)
RETURN: 'Opesation not permitted'
When i run this, in the pythonista app, appears an alert message
But when alternately i run it but with the base root file directory, it pritns me all folders
import os
location=os.chdir('/')
for file in os.listdir(location):
print(file)
RETURN: .file .mb Applications Developer Library System bin cores dev etc private sbin tmp usr var
You cannot do it. source
You should have access only to certain folders
This is your only working area