I want to pick all files in a directory and then store as copy compressed version of these files in the same directory.
If I use Intent.ACTION_OPEN_DOCUMENT_TREE I get a tree Uri, but I cannot figure how I could get the file Uri of all files contained in it and how to write in the directory itself.
In the documentation I cannot find any similar use case.
Before forced SAF it was enough to get directory path and work with standard File methods, unfortunately now all the past methods based on Files and explicit paths are broken with this SAF.