Hello,
I'm having an issue with Storage Access Framework (SAF).
When I select a folder, DroidScript returns a URI such as:
content://com.android.externalstorage.documents/tree/primary:Documents/MyData
I cannot use this URI with app.ListFolder().
I also tried using the equivalent filesystem path:
/storage/emulated/0/Documents/MyData
Even after obtaining write permission and successfully creating files with app.WriteFile(), app.ListFolder() is still unable to list the folder contents.
Is there a way to access and list files from a SAF folder URI, or is this a limitation of app.ListFolder()?
If not, could support for SAF URIs be added to functions like ListFolder(), ReadFile(), and WriteFile()? Android increasingly returns content URIs instead of direct file paths, so it would be very useful.
Thank you.