Skip to main content

TEMP_SUFFIX

Constant TEMP_SUFFIX 

Source
pub const TEMP_SUFFIX: &str = ".rakata-new";
Expand description

Suffix marking a file something in this workspace is part-way through writing.

A write goes to <name>.rakata-new beside its target, is flushed, and is then renamed over it, so a failure leaves the target untouched. One spelling across the workspace is what lets a leftover be recognised as inert by whatever finds it next rather than reported as an unknown file.