alexrintt / shared-storage

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

Check if folder exists or not #142

Open gauravmehta13 opened 11 months ago

gauravmehta13 commented 11 months 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 11 months 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.