org.specs2.io

DirectoryPath

Related Docs: object DirectoryPath | package io

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

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DirectoryPath
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DirectoryPath(dirs: Vector[FileName], absolute: Boolean)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. def /(name: FileName): DirectoryPath

    append a new name to this directory

    append a new name to this directory

    returns

    a DirectoryPath

  4. def /(other: FilePath): FilePath

    append a FilePath to this directory

    append a FilePath to this directory

    returns

    another FilePath

  5. def /(other: DirectoryPath): DirectoryPath

    append another directory path

    append another directory path

    DirectoryPath.Root plays the role an empty element for this operation

  6. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  7. val absolute: Boolean

  8. def asAbsolute: DirectoryPath

    returns

    an absolute directory path

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def asRelative: DirectoryPath

    returns

    a relative directory path

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def dir: DirectoryPath

    returns

    either the parent directory or the root if we already are at the root

  13. def dirPath: String

    returns

    the path for this file as a / separated string, with a final /

  14. val dirs: Vector[FileName]

  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def fromRoot: DirectoryPath

    returns

    the DirectoryPath starting from the root

  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def isAbsolute: Boolean

    returns

    true if this directory path is absolute

  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. def isRelative: Boolean

    returns

    true if this directory path is relative

  22. def isRoot: Boolean

  23. def name: FileName

    returns

    the last file name of the list or . if the list is empty

  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. def parent: Option[DirectoryPath]

    returns

    the parent directory for this directory, none if we are at the root

  28. def path: String

    returns

    the path for this file as a / separated string

  29. def relativeTo(other: DirectoryPath): DirectoryPath

    returns

    the portion of a dir path that is relative to another

  30. def root: DirectoryPath

    returns

    the dir path for the first name in the list

  31. def setAbsolute(isAbsolute: Boolean): DirectoryPath

    returns

    modify the absolute status of this dir path

  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toFile: File

    returns

    a File for this path

  34. def toFilePath: FilePath

    returns

    interpret this DirectoryPath as a FilePath, which might be /. if this DirectoryPath is Root

  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def |(name: FileName): FilePath

    append a new name to this directory but

    append a new name to this directory but

    returns

    a FilePath

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped