Struct Path

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

Constructors

Name Description
this Main constructor.

Properties

Name Type Description
empty [get] bool Is this path equal to empty string?
up [get] Path Returns the parent path, according to std.path.dirName.

Methods

Name Description
opBinary Concatenates two paths, with a directory separator in between.
opBinary Appends an extension to a path. Naturally, a directory separator is NOT inserted in between.
opBinaryRight Concatenates two paths, with a directory separator in between.
opCast Convert to bool
opCmp Compare using OS-specific case-sensitivity rules. If you want to force case-sensitive or case-insensitive, then call filenameCmp instead.
opEquals Compare using OS-specific case-sensitivity rules. If you want to force case-sensitive or case-insensitive, then call filenameCmp instead.
opOpAssign Appends a path to this one, with a directory separator in between.
opOpAssign Appends an extension to this path. Naturally, a directory separator is NOT inserted in between.
toRawString Returns the underlying string. Does NOT do any escaping, even if path contains spaces.
toString Convert to string, quoting or escaping spaces if necessary.

Authors

Nick Sabalausky

Copyright

Copyright (C) 2014-2015 Nick Sabalausky

License

zlib/libpng