Replies: 1 comment 4 replies
-
You've definitely found the right place - welcome! The problem you're hitting is something common on mobile platforms - they're a lot more locked down than desktop platforms in terms of what you're allowed to see. This is part of the "app sandbox" - one of the reasons that apps on phones are more secure is that they very strictly regulate what you can and can't see. In this case, the current working directory (which is a bit of an odd concept on a phone to start with) exists, but it isn't guaranteed to be a location that you can view. The good news is that Toga apps expose a collection of root paths that are visible. Inside your Toga App object, there is an |
Beta Was this translation helpful? Give feedback.
-
I am new to Python, Beeware and Toga. I apologize if this is not the right forum to pose this question.
I have an new app that is working in Windows and I am trying to get it to run on Android so I can take it along with me. It is to read a directory listing file of my iTunes pulled off my media server. I can then use the mobile to see if I have the song/CD already when I come across an album that I may not have.
I import os, use a call to os.getcwd() and it has a return (but I suspect it is just showing me the root of the application??). When I do another call to load os.listdir() to a list, I get the permissions error below. Any help would be most appreciated!!
04-22 16:15:05.134 4507 4507 E Python : me = os.listdir()
04-22 16:15:05.134 4507 4507 E Python : PermissionError: [Errno 13] Permission denied
Beta Was this translation helpful? Give feedback.
All reactions