pub async fn project_export(
api: &dyn GatewayApi,
name: &str,
output: Option<&Path>,
) -> Result<ExportResult, CoreError>Expand description
ign project export — stream the project ZIP to disk. With -o
the bytes land at exactly that path; without one, the stream goes
to <name>.zip.part in the working directory and atomically
renames to the SANITIZED Content-Disposition basename (path
components stripped) or the <name>.zip fallback — the .part
is removed best-effort on error, so a failed export leaves no
half-written impostor.