rosuH / AndroidFilePicker

FilePicker is a small and fast file selector library that is constantly evolving with the goal of rapid integration, high customization, and configurability~
https://afp.rosuh.me
MIT License
991 stars 87 forks source link

能否支持外置SD卡 #136

Open woaiwojiabinge opened 3 years ago

woaiwojiabinge commented 3 years ago

目前支持的内部存储卡,如果外置SD卡能否支持呢

rosuH commented 3 years ago

目前不支持,如果你的需求紧急的话,可以参考修改以下代码:

https://github.com/rosuH/AndroidFilePicker/blob/f25d4d87bda0d6bf694d57efd2aff3306dba2c9f/filepicker/src/main/java/me/rosuh/filepicker/utils/FileUtils.kt#L27-L43

以及这位用户提供的解决方案:https://github.com/rosuH/AndroidFilePicker/issues/56

我会在近期看下能否加入特性。感谢反馈~

rosuH commented 3 years ago

@woaiwojiabinge 你可以尝试 setCustomRootPath 方法,把外置 SD 卡的路径传进去。这样子应该可以支持单根目录的显示。