compose-multiplatform-file-picker icon indicating copy to clipboard operation
compose-multiplatform-file-picker copied to clipboard

Issue with folder picker in Android

Open AlirezaIvaz opened this issue 1 year ago • 0 comments

I'm using folder picker and it works properly in desktop but in Android, i have some troubles.

When user clicks on a fab, i will show the folder picker dialog, and user choose the target folder, the path returned to my app is something like this:

content://com.android.externalstorage.documents/tree/primary%3ADownload/MyApp

After that i'm checking is that folder exists or not:

val file = File(path)
val isExists = file.exists()

In desktop it returns true but in Android it always returns false.

AlirezaIvaz avatar May 05 '24 08:05 AlirezaIvaz