bundles / jupyter_core latest / jupyter_core / utils / ensure_dir_exists
function
jupyter_core.utils:ensure_dir_exists
Signature
def ensure_dir_exists(path: str | Path, mode: int = 511) → NoneSummary
Ensure that a directory exists
Extended Summary
If it doesn't exist, try to create it, protecting against a race condition if another process is doing the same. The default permissions are determined by the current umask.
Aliases
jupyter_core.utils.ensure_dir_exists