public Path resolve()

in src/main/java/org/apache/sling/commons/jcr/file/internal/JcrPath.java [178:190]


    public Path resolve(Path other) {
        logger.info("resolving given path {} against this path {}", other, this);
        if (other.isAbsolute()) {
            return other;
        }
        if (this.path.endsWith("/")) {
            final String path = this.path.concat(other.toString());
            return new JcrPath(fileSystem, path);
        } else {
            final String path = String.format("%s/%s", this.path, other.toString());
            return new JcrPath(fileSystem, path);
        }
    }