vibe.core.path

Contains routines for high level path handling.

Members

Aliases

InetPath
alias InetPath = Path

Forward compatibility alias for vibe-core

NativePath
alias NativePath = Path
PosixPath
alias PosixPath = Path
WindowsPath
alias WindowsPath = Path

Forward compatibility alias for vibe-core

Functions

joinPath
string joinPath(string basepath, string subpath)

Joins two path strings. subpath must be relative.

relativeTo
Path relativeTo(Path path, Path base_path)

Computes the relative path from base_path to this path.

relativeToWeb
Path relativeToWeb(Path path, Path base_path)

Computes the relative path to this path from base_path using web path rules.

splitPath
PathEntry[] splitPath(string path)

Splits up a path string into its elements/folders

Structs

Path
struct Path

Represents an absolute or relative file system path.

PathEntry
struct PathEntry
Undocumented in source.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.

Authors

Sönke Ludwig