HI, Calinou, I enabled read/write external permission at the export setting. Besides, I also request permissions at the runtime time if permission is not granted:
some pseudo code here
var perm = OS.get_granted_permissions()
if perm does not have android read/write external permission:
OS.request_permission(read/write external storage)
I looked at these two issues #1 and #2. From the discussion, it seemed that user://
is a hidden directory for each app and we can't find files under user:// with other file browsing app. Basically, I can do dir.open("user://")
and list all content in this directory, and still I cannot find my saved folder and files through a file manager either on PC or Quest itself.
So, I tried to create a directory similar to #1 and #2 and wanted to save data there: dir.make_dir_recursive("/Android/data/com.godotengine.name/")
, and this time it threw the error creating such folders.
Do you have any idea about my problems or any other approaches that I can find my saved data through a file manager? Appreciation in advance.
One interesting problem here: I definitely enabled read/write external storage (check at the android export), and I did see when compiling, there were several lines saying "adding permission READ/WRITE" etc. but when I tried to print what the granted permissions were by the OS, var perm = OS.get_granted_permissions()
, it returned an empty array. Any idea to this problem?