precog / scala-pathy   0.2.13

Apache License 2.0 GitHub

A type-safe abstraction for platform-independent file system paths.

Scala versions: 2.12 2.11 2.10

Build Status

pathy

A type-safe abstraction for platform-independent file system paths.

Ported from purescript-pathy.

Example

val fullPath = rootDir </> dir("baz") </> file("foo.png")

See the examples file for more.

Getting Started

Installation

pathy is cross-built against Scala 2.10.x and 2.11.x.

If you're using SBT, add the following to your build file

libraryDependencies += "com.slamdata" %% "pathy" % "0.0.1-SNAPSHOT"

Usage

The following imports will bring all types and operations into scope

import pathy._, Path._