User Guide
Developer Guide
API Reference
Config
load_config()
Common utility functions.
Ensure a path exists, creating parent directories if needed.
path (str | Path) – Path to ensure exists
Path object
Path
Format bytes as human-readable string.
size_bytes (int) – Size in bytes
Formatted string (e.g., “1.5 MB”)
str
Sanitize a filename by removing/replacing invalid characters.
filename (str) – Original filename
Sanitized filename