This library provides an operating-system-independent implementation of Unix-style paths, similar to the NIO UnixPath
implementation.
Simple Gradle setup:
buildscript {
repositories {
jcenter()
}
}
dependencies {
compile 'com.palantir.syntactic-paths:syntactic-paths:0.6.0'
}
In Java:
Path foo = Paths.get("/a", "b").resolve("c"); // represents /a/b/c
Path bar = foo.relativize(Paths.get("/a")); // represents b/c
This repository is made available under the Apache 2.0 License.