Code example for Path

Methods: relativize

0
    private final Path script;
    private boolean enabled = true;
 
    public TestInfo(Path basedir, Path file) {
        this.baseDir = basedir;
        this.script = basedir.relativize(file);
    } 
 
    public final Path getBaseDir() {
        return baseDir;
    } 
 
    public final Path getScript() {
        return script;
    } 
 
    public final boolean isEnabled() { 
        return enabled;
    } 
 
Experience pair programming with AI  Get Codota for Java