Skip to main content

move_aside

Function move_aside 

Source
pub fn move_aside(exe: &Path, pid: u32) -> Result<Vec<PathBuf>, String>
Expand description

Moves exe and its twins into <exe dir>/.shuyi-running/, each as <stem>-<pid>-<n> with exe’s extension, after sweeping that folder, and leaves a copy of each in its place: the new paths, none if exe has no twin. Or why not.