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 |
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 |
opEquals
|
Compare using OS-specific case-sensitivity rules. If you want to force |
opOpAssign
|
Appends a path to this one, with a directory separator in between. |
opOpAssign
|
Appends an extension to this path. Naturally, a directory separator |
raw
|
Returns the underlying string. Does NOT do any escaping, even if path contains spaces. |
toString
|
Convert to string, quoting or escaping spaces if necessary. |
Aliases
Name | Description |
---|---|
toRawString
|
Returns the underlying string. Does NOT do any escaping, even if path contains spaces. |
Authors
Nick Sabalausky
Copyright
Copyright (C) 2014-2017 Nick Sabalausky
License
zlib/libpng