How do i access specific folders in android using

2019-06-14 14:44发布

问题:

Say I have folders like movies, ifont, song, images, whatsapp, etc

On my External storage, I want to access files from any of the folders above and store to a list using flutter.

I already added the necessary permissions to android.xml But I am clueless on how to go further from there,
I would appreciate a code snippet.

Thanks.

回答1:

you can use listSync to get the list of sub-directories and files and you will get a list of FileSystemEntity.you also need to get persmmison to external storage so use this plugin

  • check out this Question also