Expand description
Crash-durable same-directory file publication primitives. Crash-durable same-directory file publication.
Unix durability requires syncing directory metadata after publication.
Windows directory handles do not provide the same portable contract, so
publication uses MoveFileExW(MOVEFILE_WRITE_THROUGH) instead. Unsupported
platforms fail closed rather than claiming durable output after a no-op.
Enums§
- Durable
Rename Mode - Whether publication may replace an existing destination.
Functions§
- durable_
rename - Publishes a synced temporary file under a same-directory destination and does not return until the rename metadata is durably flushed.
- ensure_
durable_ directory - Creates every missing directory component with a crash-durable parent publication before returning.