title: How to get access to a directory and its files from tree URI path with SAF
body: <p>I want to pick all files in a directory and then store as copy compressed version of these files in the same directory.</p>
  
  <p>If I use <code>Intent.ACTION_OPEN_DOCUMENT_TREE</code> I get a tree <code>Uri</code>, 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.</p>
  
  <p>In the <a href="https://developer.android.com/training/data-storage/shared/documents-files" rel="nofollow noreferrer">documentation</a> I cannot find any similar use case.</p>
  
  <p>Before forced <em>SAF</em> 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.</p>