All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cj.qunit.mojo.fs.FilesystemFunctions Maven / Gradle / Ivy

package com.cj.qunit.mojo.fs;

import java.io.File;

public class FilesystemFunctions {

    public static interface FileVisitor{
        void visit(File path);
    }
    public static void scanFiles(File path, FileVisitor visitor){
        if(path.isDirectory()){
            for(File next : path.listFiles()){
                scanFiles(next, visitor);
            }
        }else{
            visitor.visit(path);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy