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