Package ghidra.sleigh.grammar
Class FileSearcher
- java.lang.Object
-
- ghidra.sleigh.grammar.FileSearcher
-
public class FileSearcher extends java.lang.Object
Utility class to Search for Files in any directory All one needs is to call FileSearcher.gatherFilesFromDir and provide the necessary file extension(s) and the list will be returned.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FileSearcher.FileSearcherException
File Searcher Exception Handler...
-
Constructor Summary
Constructors Constructor Description FileSearcher()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.io.File>
gatherFilesFromDir(java.io.File currDirToSearch, java.util.List<java.lang.String> currFileTypeExtList, boolean useRecursionInSearch)
Gather's all Files from the Directory that have the passed in File Type Extension.static void
main(java.lang.String[] args)
-
-
-
Method Detail
-
gatherFilesFromDir
public static final java.util.List<java.io.File> gatherFilesFromDir(java.io.File currDirToSearch, java.util.List<java.lang.String> currFileTypeExtList, boolean useRecursionInSearch) throws FileSearcher.FileSearcherException
Gather's all Files from the Directory that have the passed in File Type Extension. Returns this List of Files Found.- Parameters:
currDirToSearch
- - The Directory to SearchcurrFileTypeExtList
- - The List of File Type Extensions to Search foruseRecursionInSearch
- - Determine whether to Search recursively or not- Returns:
- - List of Files that were found
- Throws:
FileSearcher.FileSearcherException
-
main
public static void main(java.lang.String[] args)
- Parameters:
args
-
-
-