MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / clone_dir_command

Function clone_dir_command

src/pglite/base.rs:2075–2083  ·  view source on GitHub ↗
(src: &Path, dest: &Path)

Source from the content-addressed store, hash-verified

2073
2074#[cfg(target_os = "linux")]
2075fn 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")]
2086fn clone_dir_command(src: &Path, dest: &Path) -> std::io::Result<std::process::ExitStatus> {

Callers 1

try_clone_dirFunction · 0.85

Calls 2

statusMethod · 0.80
argMethod · 0.80

Tested by

no test coverage detected