(src: &Path, dest: &Path)
| 2073 | |
| 2074 | #[cfg(target_os = "linux")] |
| 2075 | fn clone_dir_command(src: &Path, dest: &Path) -> std::io::Result<std::process::ExitStatus> { |
| 2076 | Command::new("cp") |
| 2077 | .arg("-a") |
| 2078 | .arg("--reflink=auto") |
| 2079 | .arg("--") |
| 2080 | .arg(src) |
| 2081 | .arg(dest) |
| 2082 | .status() |
| 2083 | } |
| 2084 | |
| 2085 | #[cfg(target_os = "macos")] |
| 2086 | fn clone_dir_command(src: &Path, dest: &Path) -> std::io::Result<std::process::ExitStatus> { |
no test coverage detected