We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b684e4 commit 70d547aCopy full SHA for 70d547a
1 file changed
filepicker/src/main/java/me/rosuh/filepicker/utils/FileUtils.kt
@@ -71,6 +71,9 @@ class FileUtils {
71
)
72
return config.selfFilter?.doFilter(listData) ?: listData
73
}
74
+ if (rootFile.listFiles().isNullOrEmpty()){
75
+ return listData
76
+ }
77
for (file in rootFile.listFiles()) {
78
//以符号 . 开头的视为隐藏文件或隐藏文件夹,后面进行过滤
79
val isHiddenFile = file.name.startsWith(".")
0 commit comments