Skip to main content

ensure_dir

Function
This function is defined in the paths module.
Ensure a directory exists, creating it if necessary.

Signature

Parameters

path
Union
required
Directory path to ensure exists

Returns

Returns
Path
Path object for the directory

Usage

Uses

  • Path
  • path.mkdir

Source

View on GitHub

praisonaiagents/paths.py at line 312