import os
import omni.client


class PathUtils:
    @staticmethod
    def is_omni_path(path: str):
        url = omni.client.break_url(path)
        return url and url.scheme == "omniverse"

    @staticmethod
    def is_omni_live(path: str):
        url = omni.client.break_url(path)
        if not url:
            return False

        _, ext = os.path.splitext(url.path)
        return ext == ".live"
