- normalize
void normalize()
Resolves all '.' and '..' path entries as far as possible.
- opBinary
Path opBinary(Path rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
- opBinary
Path opBinary(string rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
- opBinary
Path opBinary(PathEntry rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
- opCmp
int opCmp(Path rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
- opDollar
size_t opDollar()
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(Path rhs)
bool opEquals(Path other)
Tests two paths for equality using '=='.
- opIndex
immutable(PathEntry) opIndex(size_t idx)
Undocumented in source. Be warned that the author may not have intended to support it.
- opOpAssign
void opOpAssign(string rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
- opOpAssign
void opOpAssign(PathEntry rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
- opOpAssign
void opOpAssign(immutable(PathEntry)[] rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
- opOpAssign
void opOpAssign(Path rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
- opSlice
Path opSlice(size_t start, size_t end)
Undocumented in source. Be warned that the author may not have intended to support it.
- startsWith
bool startsWith(Path rhs)
Tests if rhs is an anchestor or the same as this path.
- toHash
hash_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.
- toNativeString
string toNativeString()
Converts the Path object to a native path string (backslash as path separator on Windows).
- toString
string toString()
Converts the Path back to a string representation using slashes.
Represents an absolute or relative file system path.
This struct allows to do safe operations on paths, such as concatenation and sub paths. Checks are done to disallow invalid operations such as concatenating two absolute paths. It also validates path strings and allows for easy checking of malicious relative paths.