Code example for File

Methods: canRead, isDirectory

0
		} 
 
		File[] subdirs = currentDir_.listFiles(new FileFilter() {
			@Override 
			public boolean accept(File f) {
				return f.isDirectory() && f.canRead();
			} 
		}); 
		for (File f : subdirs) {
			adapter_.add(f);
		} 
 
		File[] files = currentDir_.listFiles(new FilenameFilter() {
			@Override 
			public boolean accept(File dir, String filename) {
				for (String s : suffixes_) {
					if (filename.endsWith(s)) {
						return true; 
					} 
				} 
				return false;