pub fn copy_atomic(src: &Path, dest: &Path) -> Result<()>Expand description
Atomically copy src to dest through a Staged file. Copying a file onto itself is
refused: it would only rewrite it, and a caller that then changes dest would change its source.
The copy is dest’s own: a hard link let an edit of one graphics output in place rewrite the
cache entry and every other document’s copy (GFXHARDLINK).