public List<File> list() {
        return Lists.newArrayList(iterator());
    }
Returns the result of the search as a list.

@return A list with the files that where found.
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/utils/file/FileFinder.java