01: // FileFilter.java
02: // $Id: FileFilter.java,v 1.4 2000/08/16 21:37:26 ylafon Exp $
03: // (c) COPYRIGHT MIT and INRIA, 1997.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.cvs;
07:
08: import java.io.File;
09: import java.io.FilenameFilter;
10:
11: class FileFilter implements FilenameFilter {
12:
13: public boolean accept(File dir, String name) {
14: boolean reject = (name.startsWith(".") || name.endsWith("~") || (new File(
15: dir, name)).isDirectory());
16: return !reject;
17: }
18: }
|