public FileFinder recursive(Predicate<File> branchFilter) {
        this.branchFilter = branchFilter;
        return this;
    }
Enables a recursive search that processes sub directories that match the given {@link
Predicate} recursively with a depth-first search.

@param branchFilter The {@link Predicate<File>} that returns true for all directories
        that should be used in the search.
@return The current {@link FileFinder} to perform method chaining.
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/utils/file/FileFinder.java