Skip to main content

TEMP_PREFIX

Constant TEMP_PREFIX 

Source
pub const TEMP_PREFIX: &str = ".skns-tmp-";
Expand description

The prefix HostDir gives its temporary files while it does an atomic replace.

Reserved so a temp file can never collide with, or be mistaken for, a name a caller created: the grammar refuses it (PathReason::ReservedPrefix) and HostDir’s listing hides anything that starts with it. A temp file left behind by a crash is therefore invisible to the namespace; it can be removed from the host directory by hand.