//
// This software is now distributed according to
// the Lesser Gnu Public License.  Please see
// http://www.gnu.org/copyleft/lesser.txt for
// the details.
//    -- Happy Computing!
//
package com.stevesoft.pat;

/**
 * This class is just like FileRegex, except that its accept method only returns
 * true if the file matching the pattern is not a directory.
 */
public class NonDirFileRegex extends FileRegex
{
  public NonDirFileRegex()
  {
    dirflag = NONDIR;
  }

  public NonDirFileRegex(String fp)
  {
    super(fp);
    dirflag = NONDIR;
  }

  public static String[] list(String f)
  {
    return list(f, NONDIR);
  }
}
