FilePath

org.specs2.io.FilePath
See theFilePath companion object
case class FilePath(dir: DirectoryPath, name: FileName)

Representation of a file path, absolute or relative

It has a parent directory and a name

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Attributes

Returns

an absolute file path

Attributes

Returns

a relative file path

Attributes

Returns

return the portion of the file path that starts from the rootname

def isAbsolute: Boolean

Attributes

Returns

true if the file path is absolute

def isRelative: Boolean

Attributes

Returns

true if this file path is relative

def path: String

Attributes

Returns

the path for this file as a / separated string

Attributes

Returns

a file path with the same name but in another directory path

Attributes

Returns

the portion of a file path that is relative to another

Attributes

Returns

the root directory containing this file

def setAbsolute(absolute: Boolean): FilePath

Attributes

Returns

modify the absolute status of this file path

Attributes

Returns

interpret this FilePath as a DirectoryPath

def toFile: File

Attributes

Returns

a File for this path

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product