GenericPath.Segment

A single path segment.

Constructors

this
this(string name, char separator)

Constructs a new path segment including an optional trailing separator.

Members

Functions

opCast
GenericPath!F.Segment opCast()

Converts the segment to another path type.

opEquals
bool opEquals(Segment other)
bool opEquals(string name)

Compares two path segment names

toString
deprecated string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

hasSeparator
bool hasSeparator [@property getter]

Returns true iff the segment has a trailing path separator.

name
string name [@property getter]

The (file/directory) name of the path segment.

separator
char separator [@property getter]
char separator [@property setter]

The trailing separator (e.g. '/') or '\0'.

Static functions

fromTrustedString
Segment fromTrustedString(string name, char separator)

Constructs a path segment without performing validation.

validateFilename
deprecated Segment validateFilename(string name)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta