python/ray/ml/utils/remote_storage.py
def _ensure_directory(uri: str):
    """Create directory at remote URI.

    Some external filesystems require directories to already exist, or at least
    the `netloc` to be created (e.g. PyArrows ``mock://`` filesystem).

    Generally this should be done before and outside of Ray applications. This
    utility is thus primarily used in testing, e.g. of ``mock://` URIs.
    """
    fs, path = get_fs_and_path(uri)
    try:
        fs.create_dir(path)
    except Exception:
        pass
Create directory at remote URI.

    Some external filesystems require directories to already exist, or at least
    the `netloc` to be created (e.g. PyArrows ``mock://`` filesystem).

    Generally this should be done before and outside of Ray applications. This
    utility is thus primarily used in testing, e.g. of ``mock://` URIs.
    
Create directory at remote URI.
Some external filesystems require directories to already exist, or at least
the `netloc` to be created .

Generally this should be done before and outside of Ray applications. This
utility is thus primarily used in testing, e.g.
Create directory at remote URI . Some external filesystems require directories to already exist or at least the ` netloc ` to be created . Generally this should be done before and outside of Ray applications . This utility is thus primarily used in testing e . g .
def _ensure_directory(uri: str):
    fs, path = get_fs_and_path(uri)
    try:
        fs.create_dir(path)
    except Exception:
        pass
def _ensure_directory ( uri : str ) : fs , path = get_fs_and_path ( uri ) try : fs . create_dir ( path ) except Exception : pass
Create directory at remote URI.
Create directory at remote URI .
"""Create directory at remote URI.

    Some external filesystems require directories to already exist, or at least
    the `netloc` to be created (e.g. PyArrows ``mock://`` filesystem).

    Generally this should be done before and outside of Ray applications. This
    utility is thus primarily used in testing, e.g. of ``mock://` URIs.
    """
uri
str