AbsolutePath

The path is guaranteed to be the absolute, normalized and tilde expanded path.

An AbsolutePath is subtyped as a Path in order to make it easy to integrate with the Phobos APIs that take a string as an argument. Example:

auto a = AbsolutePath("foo");
writeln(exists(a));

The type is optimized such that it avoids expensive operations when it is either constructed or assigned to from an AbsolutePath.

Constructors

this
this(string p)
this
this(Path p)

Alias This

value

Members

Functions

baseName
Path baseName()
dirName
AbsolutePath dirName()
empty
bool empty()
length
size_t length()
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
void opAssign(AbsolutePath p)
opAssign
void opAssign(Path p)
opBinary
Path opBinary(T rhs)
opCast
string opCast()
opCast
Path opCast()
opEquals
bool opEquals(string s)
opEquals
bool opEquals(Path s)
opEquals
bool opEquals(AbsolutePath s)
opOpAssign
void opOpAssign(T rhs)
toString
string toString()
toString
void toString(Writer w)
value
Path value()

Meta