alexrintt / shared-storage

Flutter plugin to work with Android external storage.
http://alexrintt.io/shared-storage/
MIT License
52 stars 26 forks source link

Check if folder exists or not #142

Open gauravmehta13 opened 1 year ago

gauravmehta13 commented 1 year ago

I am planning to create a whatsapp status downloader using this plugin. If the uri is not found, the plugin opens downloads folder.

how can we check if the uri is not found and show appropriate message rather than redirecting to downloads to select.

image

alexrintt commented 1 year ago

I would recommend checking if the WhatsApp app is installed or not instead of checking if their internal status folder exists.

I recommend this approach because you can't know if the status folder exists before the user grants the permission.

That's not something related to this package btw, this is a constraint from android scoped storage.