atomic_file_install

Function atomic_install_noclobber

Source
pub fn atomic_install_noclobber(src: &Path, dst: &Path) -> Result<()>
Expand description

Install a file, this fails if the dst already exists.

This is a blocking function, must be called in block_in_place mode.