2 // This software is now distributed according to
\r
3 // the Lesser Gnu Public License. Please see
\r
4 // http://www.gnu.org/copyleft/lesser.txt for
\r
6 // -- Happy Computing!
\r
8 package com.stevesoft.pat;
\r
10 /** This class is just like FileRegex, except that its accept method
\r
11 only returns true if the file matching the pattern is not a directory.*/
\r
12 public class NonDirFileRegex extends FileRegex {
\r
13 public NonDirFileRegex() { dirflag = NONDIR; }
\r
14 public NonDirFileRegex(String fp) { super(fp); dirflag = NONDIR; }
\r
15 public static String[] list(String f) {
\r
16 return list(f,NONDIR);
\r