needed for applet search
[jalview.git] / src / com / stevesoft / pat / DirFileRegex.java
1 //\r
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
5 // the details.\r
6 //    -- Happy Computing!\r
7 //\r
8 package com.stevesoft.pat;\r
9 import java.io.File;\r
10 \r
11 /** This class is just like FileRegex, except that its accept method\r
12  only returns true if the file matching the pattern is a directory.*/\r
13 public class DirFileRegex extends FileRegex {\r
14     public DirFileRegex() { dirflag = DIR; }\r
15     public DirFileRegex(String fp) { super(fp); dirflag = DIR; }\r
16     public static String[] list(String f) {\r
17         return list(f,DIR);\r
18     }\r
19 }\r