object /:

Path separator extractor:

Path("/1/2/3/test.json") match {
  case "1" /: "2" /: _ =>  ...
Source
Path.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. /:
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def unapply(path: Path): Option[(String, Path)]