pub fn ensure_parent_dir(path: &Path) -> Result<()>Expand description
Ensure the parent directory of path exists, creating it
recursively if needed. Used by the encoder before opening the
scratch files.
ยงErrors
Returns the underlying std::io::Error when directory creation
fails (permission denied, read-only filesystem, etc.).