{ } Raw JSON

bundles / jupyter_core latest / jupyter_core / utils / ensure_dir_exists

function

jupyter_core.utils:ensure_dir_exists

source: /jupyter_core/utils/__init__.py:19

Signature

def ensure_dir_exists(path: str | Path, mode: int = 511) → None

Summary

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