alexrintt / shared-storage

Flutter plugin to work with Android external storage.
http://alexrintt.io/shared-storage/
MIT License
53 stars 25 forks source link

Subfolder content listing not working #62

Closed alexrintt closed 2 years ago

alexrintt commented 2 years ago

Describe the bug

Subfolder listing not working even with #59 and #58 when we try to open a subfolder a permission error is thrown even with storage permission access over the parent uri.

To Reproduce

Open the example app in the master/release branch at the latest commit of the current timestamp and try to open a subfolder of a granted uri, it will show a "No permission" error, even though not necessary to request the folder permission again for each subfolder.

Expected behavior

List all subfolders and subfolder contents without the need of requesting the permission over the Uris twice.

Screenshots

Not applicable.

Additional context

The solution can be "picked up" from android/storage-samples on the ActionOpenDocumentTree demo.