How to recursively read folders with Avalonia StorageProvider (Android)
I am letting a user chose a folder on the device through topLevel.StorageProvider.OpenFolderPickerAsync
. When the folder gets returned succesfully, i use the following code to try to read all subfolders in that directory.
The first time i call loadFilesRecursively
and GetItemsAsync
, it gives the correct list of folders, but when i call loadFilesRecursively
on a subfolder, GetItemsAsync
returns the previous result, so it keeps looping on the first folder it finds. (I have read permissions for external storage)