public class DirectoryCrawler
Directory crawler that matches REGEX or Glob patterns. Glob patterns are indicated by using the syntax:pattern approach that is used by PathMatcher. So to use glob "glob:*.{hmp,hmp.gz}"
public static java.io.File[] listFiles(java.lang.String pattern,
java.io.File[] inputArray)
Recursively searches the object's directory tree for a specific filename.
pattern - A regular expression specifying what filename to look for. For example, pass the string ".*\.qseq.*" to search for .qseq files.public static java.lang.String[] listFileNames(java.lang.String pattern,
java.lang.String inputFile)
pattern - A regular expression specifying a filename to look for.inputFile - The name of a directory in which to search for files.public static java.io.File[] listFiles(java.lang.String pattern,
java.io.File inputFile)
public static java.util.List<java.nio.file.Path> listPaths(java.lang.String pattern,
java.nio.file.Path inputDirectory)
Return a list of file paths matching a specified pattern with the starting directory. This uses the preferred nio Paths over the prior File approach.
pattern - either regex or glob patterninputDirectory - initial directorypublic static java.io.File[] listFiles(java.lang.String pattern)
public static java.io.File[] listFiles(java.lang.String pattern,
java.lang.String inputFile)
public static java.io.File[] listFiles(java.lang.String pattern,
java.lang.String[] inputFiles)