Skip to main content

Module writer

Module writer 

Source
Expand description

Atomic artifact writes into --out/<request_id>/.

write_bytes creates the destination directory lazily and writes to a .tmp sibling first, then renames into place so a crashed fetch never leaves a half-written artifact that a later run would mistake for complete.

Functions§

ensure_dir
write_bytes