hasRoot method

bool hasRoot()

Returns true if the Path has a root.

Implementation

bool hasRoot() => _posix.rootPrefix(path) == _pathSeparator;