Package bm.util
Class FindFiles
java.lang.Object
bm.util.FindFiles
Methods to recursively collect files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFinds recursively all accessible files determined by the glob pattern which should fit the description ofPathMatcher.
-
Constructor Details
-
FindFiles
public FindFiles()
-
-
Method Details
-
glob
Finds recursively all accessible files determined by the glob pattern which should fit the description ofPathMatcher. There are corner cases where this does not find a path which formally matches, because recursing into subdirectories requires that a path prefix of the pattern matches the directory.For example the pattern
/etc/udev**.dcan not find/etc/udev/hwdb.dbecause no path prefix of the pattern,/etcis the only one anyway, matches/etc/udev. To get a close similar pattern, use/etc/udev**/*.d.Files or directories which produce IO errors on access are silently ignored.
- Parameters:
glob- is the pattern to expand.- Returns:
- the list of matching paths
- Throws:
IOException
-