Path

Represents a filesystem path. The path is always kept normalized automatically (as performed by buildNormalizedPathFixed).

Constructors

this
this(string path)

Main constructor.

Members

Aliases

toRawString
alias toRawString = raw

Returns the underlying string. Does NOT do any escaping, even if path contains spaces.

Functions

opBinary
Path opBinary(Path rhs)
Path opBinary(string rhs)

Concatenates two paths, with a directory separator in between.

opBinary
Path opBinary(Ext rhs)

Appends an extension to a path. Naturally, a directory separator is NOT inserted in between.

opBinaryRight
Path opBinaryRight(string lhs)

Concatenates two paths, with a directory separator in between.

opCast
T opCast()

Convert to bool

opCmp
int opCmp(ref const Path other)
int opCmp(Path other)
int opCmp(string other)

Compare using OS-specific case-sensitivity rules. If you want to force case-sensitive or case-insensitive, then call filenameCmp instead.

opEquals
int opEquals(ref const Path other)
int opEquals(Path other)
int opEquals(string other)

Compare using OS-specific case-sensitivity rules. If you want to force case-sensitive or case-insensitive, then call filenameCmp instead.

opOpAssign
Path opOpAssign(Path rhs)
Path opOpAssign(string rhs)

Appends a path to this one, with a directory separator in between.

opOpAssign
Path opOpAssign(Ext rhs)

Appends an extension to this path. Naturally, a directory separator is NOT inserted in between.

raw
string raw()

Returns the underlying string. Does NOT do any escaping, even if path contains spaces.

toString
string toString()

Convert to string, quoting or escaping spaces if necessary.

Properties

empty
bool empty [@property getter]

Is this path equal to empty string?

up
Path up [@property getter]

Returns the parent path, according to $(FULL_STD_PATH dirName).

Meta