Path

object Path
Companion:
class
class Object
trait Matchable
class Any
Path.type

Value members

Concrete methods

def apply(p: FilePath, base: Path): Path
def apply[T : PathConvertible](f: T, base: Path): Path
def apply[T : PathConvertible](f0: T): Path
Returns:

true if Windows OS and path begins with slash or backslash. Examples: driveRelative("/Users") // true in Windows, false elsewhere. driveRelative("\Users") // true in Windows, false elsewhere. driveRelative("C:/Users") // false always

def expandUser[T : PathConvertible](f0: T, base: Path): Path

Equivalent to os.Path.apply, but automatically expands a leading ~/ into the user's home directory, for convenience

Equivalent to os.Path.apply, but automatically expands a leading ~/ into the user's home directory, for convenience

Concrete fields

lazy val driveRoot: String
Returns:

current working drive if Windows, empty string elsewhere. Paths.get(driveRoot) == current working directory on all platforms.

Implicits

Implicits

implicit val pathOrdering: Ordering[Path]