Determines whether other is a prefix of this.
bool startsWith(Path other) => string.startsWith(other.string);