Class FileFinder

  • public class FileFinder
    extends Object
    A utility class for finding files within a directory.
    • Constructor Detail

      • FileFinder

        public FileFinder()
    • Method Detail

      • findFilesFrom

        public List<File> findFilesFrom​(File dir,
                                        FilenameFilter filter,
                                        boolean recurse)
        Searches for files in a given directory.
        dir - the directory to search files
        filter - the filename filter that can optionally be passed to get files that match this filter
        recurse - search for files recursively or not
        list of files from the given directory