I apologize if this is the wrong place to ask something so basic, but I've searched and I'm stumped...
I have some pdf files that I downloaded using the browser's "open_in" capability, that I associated with the Nook app (just because it was convenient at the time...). I would now like to access those files from a Pythonista script, but I can't figure out how to get to them.
I've been trying to use os.listdir() to poke around from the console, and it won't even let me even get a directory listing of most of the directories on the iPad. (Says the operation is not permitted...) I've noticed that some scripts on GitHub do a workaround by putting content files in their repository, and then grabbing them using a script that writes them into one of the Pythonista directories. It seems to me that there should be a better way than physically storing content files in the same directory as the script, and having to go through bizarre contortions to get the files there...
Is there a way to find the path to an arbitrary file that's on the iPad somewhere, and then to use that path to reference the file from within a Pythonista script?
Thanks!