android过滤隐藏文件FileFilter

File f = Environment.getExternalStorageDirectory();//读取SD卡路径

FileFilter ff = new FileFilter() {

public boolean accept(File pathname) {
// TODO Auto-generated method stub

       return !pathname.isHidden();//过滤隐藏文件
}
};
File[] list_Files = f.listFiles(ff);//

你可能感兴趣的:(android,list,File)