isAbsolute

Whether the path is absolute.

isAbsolute
(
PathType
)
(
auto ref in PathType p
)
if (
isSomePath!PathType
)

Examples

assert(!WindowsPath("").isAbsolute);
assert(!WindowsPath("/Hello/World").isAbsolute);
assert(WindowsPath("C:/Hello/World").isAbsolute);
assert(!WindowsPath("foo/bar.exe").isAbsolute);
assert(!PosixPath("").isAbsolute);
assert(PosixPath("/Hello/World").isAbsolute);
assert(!PosixPath("C:/Hello/World").isAbsolute);
assert(!PosixPath("foo/bar.exe").isAbsolute);

Meta