Skip to main content

stage_binary

Function stage_binary 

Source
pub fn stage_binary(source: &Path, destination: &Path) -> Result<PathBuf>
Expand description

Copy source to a private <destination>.new-<pid>-<random> (same directory, so the later rename is atomic) and mark it executable. Nothing in place changes yet, and no other process can hand us its file.