Path

replpp.shaded.os.Path
See thePath companion class
object Path

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Path.type

Members list

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
def driveRelative[T : PathConvertible](f0: T): Boolean

Attributes

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

Attributes

Concrete fields

lazy val driveRoot: String

Attributes

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]