Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

扩展名withFileFilter筛选bug #53

Open
yy505149 opened this issue Jul 19, 2019 · 1 comment
Open

扩展名withFileFilter筛选bug #53

yy505149 opened this issue Jul 19, 2019 · 1 comment

Comments

@yy505149
Copy link

.withFileFilter(new String[]{".bin"})
实际文件为demo.Bin就不显示,大小写不识别。
改为.withFileFilter(new String[]{".bin",".Bin",".bIn",".biN",".BIn",".bIN",".BiN",".BIN"})
也不能识别,不知道什么原因。

@kbxwn
Copy link

kbxwn commented Oct 22, 2019

在LFileFilter类,代码是这样比较的
if (file.getName().endsWith(mTypes[i].toLowerCase()) || file.getName().endsWith(mTypes[i].toUpperCase()))
自己重写个过滤比较的判断吧,另外要注意设置是否过滤了文件大小,小于设定的值文件就不会展示

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants