Would import os, sys
work on an iPhone app using Python?
os.system("pwd")
Is there a way to manage pathways and look at an iPhone's directories and files?
I assume that you are using Python on iPhone through Pythonista or a similar app. It depends entirely on the implementation of the app itself if os
module functionality is available.
That said, you can't access the full iPhone file system from an iPhone app, because each app is sandboxed and can only see its own files. You can read more about iOS file system access here
There are Objective-C APIs to access e.g. photos, but it again depends on the Python implementation if they support them.