Path

Types a string as a Path to provide path related operations.

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

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

Constructors

this
this(string s)

Alias This

value

Members

Functions

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

Meta