/scala-pathy

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

Primary LanguageScalaApache License 2.0Apache-2.0

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._