A path name.
Whether a path starts at a root directory.
On POSIX, this function returns true if and only if the path starts with a slash (/).
On Windows, this function returns true if the path starts at the root directory of the current drive, of some other drive, or of a network drive.
version (Posix) { assert( isRooted("/")); assert( isRooted("/foo")); assert(!isRooted("foo")); assert(!isRooted("../foo")); } version (Windows) { assert( isRooted(`\`)); assert( isRooted(`\foo`)); assert( isRooted(`d:\foo`)); assert( isRooted(`\\foo\bar`)); assert(!isRooted("foo")); assert(!isRooted("d:foo")); }
Determines whether a path starts at a root directory.