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

grails.doc.internal.FileResourceChecker.groovy Maven / Gradle / Ivy

There is a newer version: 6.2.0
Show newest version
package grails.doc.internal

/**
 * Simple class that checks whether a path relative to a base directory exists
 * or not. Each instance of the class can have its own base directory.
 */
class FileResourceChecker {
    private final File baseDir

    FileResourceChecker(File baseDir) {
        this.baseDir = baseDir
    }

    boolean exists(path) {
        return new File(baseDir, path).exists()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy