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