--- /dev/null
+//\r
+// This software is now distributed according to\r
+// the Lesser Gnu Public License. Please see\r
+// http://www.gnu.org/copyleft/lesser.txt for\r
+// the details.\r
+// -- Happy Computing!\r
+//\r
+package com.stevesoft.pat;\r
+import java.io.File;\r
+\r
+/** This class is just like FileRegex, except that its accept method\r
+ only returns true if the file matching the pattern is a directory.*/\r
+public class DirFileRegex extends FileRegex {\r
+ public DirFileRegex() { dirflag = DIR; }\r
+ public DirFileRegex(String fp) { super(fp); dirflag = DIR; }\r
+ public static String[] list(String f) {\r
+ return list(f,DIR);\r
+ }\r
+}\r