---
title: "android过滤隐藏文件FileFilter"
author: "imdxt1986"
date: "2011-11-17T12:26:00Z"
tags: []
slug: "android-filefilter"
draft: false
lastmod: "2011-12-02T09:42:42Z"
id: 1288789
url: "https://imdxt1986.iteye.com/blog/1288789"
---

Filef = 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);//