Skip to main content

Module utils

Module utils 

Source
Expand description

Utility functions and helpers

Functionsยง

ensure_dir
Ensure a directory exists, creating it if necessary
safe_filename
Create a safe filename from a string
sync_workspace_templates
Sync workspace templates. Missing files are created; existing files are never overwritten.
truncate
Truncate a string to a maximum byte length, ensuring valid UTF-8 boundaries