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