Skip to main content

Module writer

Module writer 

Source
Expand description

Destination-side writes.

Files are written to a .part sidecar and renamed into place only after the last chunk lands and the hash verifies. A crash therefore leaves an obvious partial file that resume can pick up, never a truncated file that looks complete.

Structs§

FileWriters
Open write handles keyed by file id.
WriteHandle
One destination file, open for concurrent positional writes.

Constants§

PART_SUFFIX
Suffix for in-progress files.

Functions§

part_path_for