Hi, in Pythonista do you know a way to set a folder with read/write protection/attributes?
I mean, I’d like to set a folder “test_folder” (for example) in Pythonista main folder so that every python script inside “test_folder” and executed by interpreter can’t read or write (delete) folders and files in parent folders (top folders).
This feature should be activate or deactivate only by hand in Pythonista settings, because if a script could modify programmatically the read/write attributes of folder “test_folder” it would be a security issue.
For example, let’s suppose I create a folder named “test” in a folder named “parent_1” in Pythonista folder, see tree below:
- Pythonista main folder (Documents)
- site-packages2\
- site-packages3\
- ...
- parent_1\
- test\
and I create inside “test” a python script named “run.py” (for example) that tries to read content of files or other folders in folder “parent_1”. Well, I’d like to set in Pythonista settings (manually and only manually) that “run.py” can’t read or modify nothing is out from “test”, in order to be sure that script “run.py” can’t create problems to other files or folders that I have in my Pythonista app. In the same way I'd like to be able to re-set (manually and only manually) folder "test" so that script "run.py" can read or modify anything inside "parent_1" or top folders.
Thank you for any answer,
Regards