Class/Object

org.specs2.io

DirectoryPath

Related Docs: object DirectoryPath | package io

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

Value Members

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

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

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

    Permalink

    append a new name to this directory

    append a new name to this directory

    returns

    a DirectoryPath

  4. def /(other: FilePath): FilePath

    Permalink

    append a FilePath to this directory

    append a FilePath to this directory

    returns

    another FilePath

  5. def /(other: DirectoryPath): DirectoryPath

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  7. val absolute: Boolean

    Permalink
  8. def asAbsolute: DirectoryPath

    Permalink

    returns

    an absolute directory path

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def asRelative: DirectoryPath

    Permalink

    returns

    a relative directory path

  11. def clone(): AnyRef

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

    Permalink

    returns

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

  13. def dirPath: String

    Permalink

    returns

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

  14. val dirs: Vector[FileName]

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

    Permalink
    Definition Classes
    AnyRef
  16. def finalize(): Unit

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

    Permalink

    returns

    the DirectoryPath starting from the root

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. def isAbsolute: Boolean

    Permalink

    returns

    true if this directory path is absolute

  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def isRelative: Boolean

    Permalink

    returns

    true if this directory path is relative

  22. def isRoot: Boolean

    Permalink
  23. def name: FileName

    Permalink

    returns

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

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

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

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

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

    Permalink

    returns

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

  28. def path: String

    Permalink

    returns

    the path for this file as a / separated string

  29. def relativeTo(other: DirectoryPath): DirectoryPath

    Permalink

    returns

    the portion of a dir path that is relative to another

  30. def root: DirectoryPath

    Permalink

    returns

    the dir path for the first name in the list

  31. def setAbsolute(isAbsolute: Boolean): DirectoryPath

    Permalink

    returns

    modify the absolute status of this dir path

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

    Permalink
    Definition Classes
    AnyRef
  33. def toFile: File

    Permalink

    returns

    a File for this path

  34. def toFilePath: FilePath

    Permalink

    returns

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

  35. final def wait(): Unit

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

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

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

    Permalink

    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