grails.doc.internal.FileResourceChecker.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grails-docs Show documentation
Show all versions of grails-docs Show documentation
Grails Web Application Framework
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 - 2025 Weber Informatics LLC | Privacy Policy