pathlib

Members

Aliases

Path
alias Path = WindowsPath

Set the default path depending on the current platform.

Path
alias Path = PosixPath
Undocumented in source.

Functions

asNormalizedPath
auto asNormalizedPath(PathType p)
Undocumented in source. Be warned that the author may not have intended to support it.
asPosixPath
auto asPosixPath(PathType p)
Undocumented in source. Be warned that the author may not have intended to support it.
asWindowsPath
auto asWindowsPath(PathType p)
Undocumented in source. Be warned that the author may not have intended to support it.
assertEmpty
void assertEmpty(A a, StringType fmt)
Undocumented in source. Be warned that the author may not have intended to support it.
assertEqual
void assertEqual(A a, B b, StringType fmt)
Undocumented in source. Be warned that the author may not have intended to support it.
assertNotEmpty
void assertNotEmpty(A a, StringType fmt)
Undocumented in source. Be warned that the author may not have intended to support it.
assertNotEqual
void assertNotEqual(A a, B b, StringType fmt)
Undocumented in source. Be warned that the author may not have intended to support it.
chdir
void chdir(Path p)
Undocumented in source. Be warned that the author may not have intended to support it.
currentExePath
Path currentExePath()

The path to the current executable.

cwd
Path cwd()

The absolute path to the current working directory with symlinks and friends resolved.

drive
auto drive(PathType p)

The drive of the path p. Note: Non-Windows platforms have no concept of "drives".

exists
bool exists(Path p)

Whether the path exists or not. It does not matter whether it is a file or not.

extension
auto extension(PathType p)

The extension of the path including the leading dot.

extensions
auto extensions(PathType p)

All extensions of the path.

fullExtension
auto fullExtension(PathType p)

The full extension of the path.

glob
auto glob(Path p, PatternType pattern)

Generate an array of Paths that match the given pattern in and beneath the given path.

isAbsolute
auto isAbsolute(PathType p)

Whether the path is absolute.

isDir
bool isDir(Path p)

Whether the path is an existing directory.

isDot
bool isDot(StringType str)

Whether str can be represented by ".".

isDot
auto isDot(PathType p)

Whether the path is either "" or ".".

isFile
bool isFile(Path p)

Whether the path is an existing file.

isSymlink
bool isSymlink(Path p)

Whether the given path p points to a symbolic link (or junction point in Windows).

logDebug
void logDebug(T args)
Undocumented in source. Be warned that the author may not have intended to support it.
match
auto match(PathType p, Pattern pattern)

Whether the given path matches the given glob-style pattern

mkdir
void mkdir(Path p)
Undocumented in source. Be warned that the author may not have intended to support it.
name
auto name(PathType p)

The name of the path without any of its parents.

normalizedData
auto normalizedData(PathType p)

Will call either posixData or windowsData, according to PathType.

open
auto open(Path p, char[] openMode)
Undocumented in source. Be warned that the author may not have intended to support it.
parent
auto parent(PathType p)
Undocumented in source. Be warned that the author may not have intended to support it.
parents
auto parents(PathType p)
parts
auto parts(PathType p)
posixData
auto posixData(PathType p)
resolve
Path resolve(Path p)
Undocumented in source. Be warned that the author may not have intended to support it.
rglob
auto rglob(Path p, PatternType pattern)

Generate an array of Paths that match the given pattern in and beneath the given path.

root
auto root(PathType p)
stem
auto stem(PathType p)

The name of the path without its extension.

windowsData
auto windowsData(PathType p)

Mixin templates

PathCommon
mixintemplate PathCommon(PathType, StringType, alias theSeparator, alias theCaseSensitivity)
Undocumented in source.

Structs

PosixPath
struct PosixPath
Undocumented in source.
WindowsPath
struct WindowsPath
Undocumented in source.

Meta

Authors

Manuzor

ToDo: - Path().open(...)