Can anyone help me understand the different purpos...
# android
r
Can anyone help me understand the different purposes of a "Tree Uri" and a the Uri of a DocumentFile instantiated from that Tree Uri? At first glance, they both seem to represent the same thing—a directory. e.g.
Copy code
val documentFileTreeUri = DocumentFile.fromTreeUri(context, treeUri)
// treeUri -> <content://com.android.externalstorage.documents/tree/primary%3Afoobar>
// documentFileTreeUri -> <content://com.android.externalstorage.documents/tree/primary%3Afoo/document/primary%3Afoobar>
đŸ˜¶ 3