Struct FilePath
This represents a file. Technically, file paths aren't actually strings (for example, on Linux, they need not be valid utf-8, while a D string is supposed to be), even though we almost always use them like that.
struct FilePath;
This type is meant to represent a filename / path. I might not keep it around.
Methods
| Name | Description |
|---|---|
contentTypeFromFileExtension
()
|
Guesses the media (aka mime) content type from the file extension for this path. |
directoryName
()
|
Returns the path with the filename cut off. |
extension
()
|
Returns the file extension, if present, including the last dot. |
filename
()
|
Returns the path with the directory cut off. |