/

replpp.shaded.os.package$./$
object /

Extractor to let you easily pattern match on os.Paths. Lets you do

 @ val base/segment/filename = pwd
 base: Path = Path(Vector("Users", "haoyi", "Dropbox (Personal)"))
 segment: String = "Workspace"
 filename: String = "Ammonite"

To break apart a path and extract various pieces of it.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
/.type

Members list

Value members

Concrete methods

def unapply(p: Path): Option[(Path, String)]