I meant to get a list of text files in home directory, then a list of the folders under the home directory,
then for each folder - get a list of the text files in the folder (add to your list of text files so far)
then for each folder - get a list of subfolders, etc.
In Android 10+ there will be folders that you can't read, but you CAN read the subfolders
(for example in an SPK you won't be able to read Android > data but you can read com.smartphoneremote.androidscriptfree).
So the alternative is to hard code a list of folders you want to access.
Regards, ah