admin管理员组文章数量:1406177
I'm using an Android API 35 Google Play image emulator, and put some mp3s in the Music folder of the SD card.
However, Directory('/sdcard/Music').listSync()
only returns the '.thumbnails' directory and nothing else.
I have the READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE permissions, and have gone through
Permission.storage.request()
and Permission.mediaLibrary.request()
. I'm not sure what more I can do to see the files and not just the .thumbnails directory ?
Edit : Note that I've also tried with /storage/self/primary/Music
and /storage/emulated/0/Music
since in the device explorer, the files show up on these paths too.
本文标签: androidDirectorylistSync only returns thumbnails and not the filesStack Overflow
版权声明:本文标题:android - Directory.listSync only returns .thumbnails and not the files - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744968555a2635097.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论