sbt

class Path

[source: sbt/Path.scala]

sealed abstract class Path
extends PathFinder
A Path represents a file in a project.
See Also
sbt.PathFinder
Value Summary
lazy val relativePath : java.lang.String
Method Summary
override def ## : Path
Creates a base directory for this path. This is used by copy and zip functions to determine the relative path that should be used in the destination. For example, if the following path is specified to be copied to directory 'd', ((a / b) ##) / x / y the copied path would be d / x / y The relativePath method is used to return the relative path to the base directory.
override def / (component : java.lang.String) : Path
Constructs a new finder that selects all paths with name literal that are immediate children of paths selected by this finder.
def absolutePath : java.lang.String
abstract def asFile : java.io.File
The file represented by this path.
def asURL : java.net.URL
The file represented by this path converted to a URL.
def base : java.lang.String
The base of the name of this path. This is the part of the name before the last period, or the full name if there is no period.
def baseAndExt : (java.lang.String, java.lang.String)
override final def equals (other : Any) : Boolean
Equality of Paths is defined in terms of the underlying File.
def exists : Boolean
True if and only if the file represented by this path exists.
def ext : java.lang.String
The extension part of the name of this path. This is the part of the name after the last period, or the empty string if there is no period.
override final def hashCode : Int
The hash code of a Path is that of the underlying File.
def isDirectory : Boolean
True if and only if the file represented by this path is a directory.
def lastModified : Long
The last modified time of the file represented by this path.
def name : java.lang.String
The last component of this path.
def newerThan (p : Path) : Boolean
def olderThan (p : Path) : Boolean
final def projectRelativePath : java.lang.String
abstract def projectRelativePathString (separator : java.lang.String) : java.lang.String
abstract def relativePathString (separator : java.lang.String) : java.lang.String
Methods inherited from PathFinder
+++, ---, **, ***, *, \, descendentsExcept, get, filter, flatMap, getURLs, getFiles, getPaths, getRelativePaths, strictMap, distinct, absString, relativeString, toString
Methods inherited from AnyRef
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Value Details
lazy val relativePath : java.lang.String

Method Details
override def ## : Path
Creates a base directory for this path. This is used by copy and zip functions to determine the relative path that should be used in the destination. For example, if the following path is specified to be copied to directory 'd', ((a / b) ##) / x / y the copied path would be d / x / y The relativePath method is used to return the relative path to the base directory.
Overrides
PathFinder.##

override def /(component : java.lang.String) : Path
Constructs a new finder that selects all paths with name literal that are immediate children of paths selected by this finder.
Overrides
PathFinder./

def exists : Boolean
True if and only if the file represented by this path exists.

def isDirectory : Boolean
True if and only if the file represented by this path is a directory.

def lastModified : Long
The last modified time of the file represented by this path.

def newerThan(p : Path) : Boolean

def olderThan(p : Path) : Boolean

abstract def asFile : java.io.File
The file represented by this path.

def asURL : java.net.URL
The file represented by this path converted to a URL.

abstract def relativePathString(separator : java.lang.String) : java.lang.String

final def projectRelativePath : java.lang.String

abstract def projectRelativePathString(separator : java.lang.String) : java.lang.String

def absolutePath : java.lang.String

def name : java.lang.String
The last component of this path.

def ext : java.lang.String
The extension part of the name of this path. This is the part of the name after the last period, or the empty string if there is no period.

def base : java.lang.String
The base of the name of this path. This is the part of the name before the last period, or the full name if there is no period.

def baseAndExt : (java.lang.String, java.lang.String)

override final def equals(other : Any) : Boolean
Equality of Paths is defined in terms of the underlying File.

override final def hashCode : Int
The hash code of a Path is that of the underlying File.