Determines whether other is a prefix of this.
bool startsWith(Path other) => isWindows ? WindowsPath(_string).startsWith(WindowsPath(other._string)) : UnixPath(_string).startsWith(UnixPath(other._string));