python/ray/ml/utils/remote_storage.py
def is_non_local_path_uri(uri: str) -> bool:
    """Check if target URI points to a non-local location"""
    parsed = urllib.parse.urlparse(uri)
    if parsed.scheme == "file" or not parsed.scheme:
        return False

    if bool(get_fs_and_path(uri)[0]):
        return True
    # Keep manual check for prefixes for backwards compatibility with the
    # TrialCheckpoint class. Remove once fully deprecated.
    if any(uri.startswith(p) for p in ALLOWED_REMOTE_PREFIXES):
        return True
    return False
Check if target URI points to a non-local location
Check if target URI points to a non-local location
Check if target URI points to a non - local location
def is_non_local_path_uri(uri: str) -> bool:
    parsed = urllib.parse.urlparse(uri)
    if parsed.scheme == "file" or not parsed.scheme:
        return False
    if bool(get_fs_and_path(uri)[0]):
        return True
    if any(uri.startswith(p) for p in ALLOWED_REMOTE_PREFIXES):
        return True
    return False
def is_non_local_path_uri ( uri : str ) -> bool : parsed = urllib . parse . urlparse ( uri ) if parsed . scheme == "file" or not parsed . scheme : return False if bool ( get_fs_and_path ( uri ) [ 0 ] ) : return True if any ( uri . startswith ( p ) for p in ALLOWED_REMOTE_PREFIXES ) : return True return False
Check if target URI points to a non-local location
Check if target URI points to a non - local location
"""Check if target URI points to a non-local location""" # Keep manual check for prefixes for backwards compatibility with the # TrialCheckpoint class. Remove once fully deprecated.
uri
str