case class DirectoryPath(dirs: Vector[FileName], absolute: Boolean) extends Product with Serializable
Representation of a directory path which can be relative or absolute
It is a list of FileNames and we can append other DirectoryPaths or FilePaths to it If the list is empty, this means we are at the root
- Alphabetic
- By Inheritance
- DirectoryPath
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def /(name: FileName): DirectoryPath
append a new name to this directory
append a new name to this directory
- returns
a DirectoryPath
- def /(other: FilePath): FilePath
append a FilePath to this directory
append a FilePath to this directory
- returns
another FilePath
- def /(other: DirectoryPath): DirectoryPath
append another directory path
append another directory path
DirectoryPath.Root plays the role an empty element for this operation
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val absolute: Boolean
- def asAbsolute: DirectoryPath
- returns
an absolute directory path
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asRelative: DirectoryPath
- returns
a relative directory path
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def dir: DirectoryPath
- returns
either the parent directory or the root if we already are at the root
- def dirPath: String
- returns
the path for this file as a / separated string, with a final /
- val dirs: Vector[FileName]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromRoot: DirectoryPath
- returns
the DirectoryPath starting from the root
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isAbsolute: Boolean
- returns
true if this directory path is absolute
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isRelative: Boolean
- returns
true if this directory path is relative
- def isRoot: Boolean
- def name: FileName
- returns
the last file name of the list or . if the list is empty
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def parent: Option[DirectoryPath]
- returns
the parent directory for this directory, none if we are at the root
- def path: String
- returns
the path for this file as a / separated string
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def relativeTo(other: DirectoryPath): DirectoryPath
- returns
the portion of a dir path that is relative to another
- def root: DirectoryPath
- returns
the dir path for the first name in the list
- def setAbsolute(isAbsolute: Boolean): DirectoryPath
- returns
modify the absolute status of this dir path
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toFile: File
- returns
a File for this path
- def toFilePath: FilePath
- returns
interpret this DirectoryPath as a FilePath, which might be /. if this DirectoryPath is Root
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def |(name: FileName): FilePath
append a new name to this directory but
append a new name to this directory but
- returns
a FilePath