equal_urls#
- omni.client.equal_urls(
- url_a: str,
- url_b: str,
- ignore_port=True,
- ignore_user=True,
- ignore_query_string=True,
Checks if two urls are equal. This function will simply compare URLs with string equality to different parts of URLs. When to compare a raw filesystem path towards an local file URL with scheme `file`, the URL will firstly be converted to a raw filesystem path, then doing comparison.
- Parameters:
url_a (str) – First URL to compare.
url_b (str) – Second URL to compare.
ignore_port (bool) – Whether to ignore port differences. Defaults to True.
ignore_user (bool) – Whether to ignore user differences. Defaults to True.
ignore_query_string (bool) – Whether to ignore query string differences. Defaults to True.
- Returns:
True if URLs are equal according to comparison criteria.
- Return type:
bool