Skip to main content

Module ensure

Module ensure 

Source
Expand description

Directory creation and verification utilities.

Provides strategies for creating directories and verifying they are writable. The DirectoryCreationStrategy enum does NOT include interactive/prompt variants; adapter code should handle user interaction separately.

Enums§

DirectoryCreationStrategy
Strategy for how to handle missing directories when ensuring they exist.

Functions§

ensure_directory
Ensure the provided directory exists and is writable according to the chosen strategy.
verify_writable
Verify a directory is writable by attempting to create a test file.