Package flexagon.ff.common.core.utils
Class FlexFindPathsUtils
java.lang.Object
flexagon.ff.common.core.utils.FlexFindPathsUtils
A class to find files or directories based on name and/or extension.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindDirectoryWithName(String pMatchString) Recursive directory Search.findFilesEndingWith(String pMatchString) Recursively searches for files that end with this substring.findFilesMatchingRegex(String pPattern) findFileWithName(String pMatchString) Recursively searches for files matching given file name.
-
Constructor Details
-
FlexFindPathsUtils
-
-
Method Details
-
findFileWithName
Recursively searches for files matching given file name. Name must match the entire file name including extension- Parameters:
pMatchString- Full Filename- Returns:
- List of Paths matching the file name
-
findFilesEndingWith
Recursively searches for files that end with this substring. You could pass in out and get shout, my.out. or pass in .out to get just my.out- Parameters:
pMatchString- File suffix- Returns:
- List of files with file name ending with given string
-
findFilesMatchingRegex
-
findDirectoryWithName
Recursive directory Search. This is not used for files, only folders.
-