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