You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
476 B
14 lines
476 B
2 years ago
|
--- a/src/depot.rs
|
||
|
+++ b/src/depot.rs
|
||
|
@@ -104,7 +104,9 @@ impl Depot {
|
||
|
)
|
||
|
.context(format!("failed to create directory {:?}", dst))?;
|
||
|
|
||
|
- copy_dir::copy_dir(&src, &dst).context(format!("failed to copy directory {:?} to {:?}", src, dst))?;
|
||
|
+ let mut options = fs_extra::dir::CopyOptions::new();
|
||
|
+ options.copy_inside = true;
|
||
|
+ fs_extra::dir::copy(src, dst, &options).context(format!("failed to copy directory {:?} to {:?}", src, dst))?;
|
||
|
Ok(())
|
||
|
}
|
||
|
|