vibe.core.path

Contains routines for high level path handling.

Members

Aliases

InetPath
alias InetPath = GenericPath!InetPathFormat

Represents a path as part of an URI.

NativePath
alias NativePath = WindowsPath

The path type native to the target operating system.

NativePath
alias NativePath = PosixPath
Undocumented in source.
Path
deprecated alias Path = NativePath
Undocumented in source.
PathEntry
deprecated alias PathEntry = Path.Segment
Undocumented in source.
PosixPath
alias PosixPath = GenericPath!PosixPathFormat

Represents a path on Unix/Posix systems.

WindowsPath
alias WindowsPath = GenericPath!WindowsPathFormat

Represents a path on Windows operating systems.

Classes

PathValidationException
class PathValidationException

Thrown when an invalid string representation of a path is detected.

Functions

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.

toNativeString
string toNativeString(P path)

Converts a path to its system native string representation.

Structs

GenericPath
struct GenericPath(F)

Provides a common interface to operate on paths of various kinds.

InetPathFormat
struct InetPathFormat

Implements URI/Internet path semantics.

PosixPathFormat
struct PosixPathFormat

Implements Unix/Linux path semantics.

WindowsPathFormat
struct WindowsPathFormat

Implements Windows path semantics.

Meta

License

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

Authors

Sönke Ludwig