pub async fn ensure_dir_exists(path: &Path) -> Result<(), Error>
Ensure a directory exists, creating it if necessary