737
技術社區[雲棲]
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);//
最後更新:2017-04-03 18:51:52