public class Glob extends Object
Constructor and Description |
---|
Glob(String globString) |
Glob(String globString,
int flags) |
Modifier and Type | Method and Description |
---|---|
List<File> |
getFiles(File root,
boolean recursive,
boolean usePath)
Get a list of files that match the glob expression
|
void |
getFiles(File root,
List<File> result,
boolean recursive,
boolean usePath) |
Matcher |
matcher(CharSequence input) |
void |
select(List<?> objects) |
static Pattern |
toPattern(String s) |
static Pattern |
toPattern(String s,
int flags) |
String |
toString() |
public static final Glob ALL
public Glob(String globString)
public Glob(String globString, int flags)
public Matcher matcher(CharSequence input)
public void select(List<?> objects)
public List<File> getFiles(File root, boolean recursive, boolean usePath)
root
- the directory to get the files fromrecursive
- to traverse the dirs recursiveCopyright © 2021 aQute SARL. All rights reserved.