AndroidFilePicker icon indicating copy to clipboard operation
AndroidFilePicker copied to clipboard

能否支持外置SD卡

Open woaiwojiabinge opened this issue 2 years ago • 2 comments

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

woaiwojiabinge avatar Aug 20 '21 02:08 woaiwojiabinge

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

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 avatar Aug 20 '21 03:08 rosuH

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

rosuH avatar Sep 02 '21 02:09 rosuH