Skip to content

A simple library for manipulating Unix-style paths in an OS-independent way

Notifications You must be signed in to change notification settings

mingyukim/syntactic-paths

 
 

Repository files navigation

CircleCI Build Status Download

Syntactic Path Library

This library provides an operating-system-independent implementation of Unix-style paths, similar to the NIO UnixPath implementation.

Usage

Simple Gradle setup:

buildscript {
    repositories {
        jcenter()
    }
}

dependencies {
    compile 'uschi2000:syntactic-paths:0.1.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

License

This repository is made available under the Apache 2.0 License.

About

A simple library for manipulating Unix-style paths in an OS-independent way

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%