needed for applet search
[jalview.git] / src / com / stevesoft / pat / DirFileRegex.java
diff --git a/src/com/stevesoft/pat/DirFileRegex.java b/src/com/stevesoft/pat/DirFileRegex.java
new file mode 100755 (executable)
index 0000000..731457c
--- /dev/null
@@ -0,0 +1,19 @@
+//\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