cp

Function cp 

Source
pub(crate) fn cp(from: &Path, to: &Path) -> Result<()>
Expand description

Copies a built binary or library from from to to using [ytil_sys::file::atomic_cp] and prints an “Installed” status line.

§Errors

  • [ytil_sys::file::atomic_cp] fails to copy.
  • The final rename or write cannot be performed.