Merge branch 'v3' into v3-t17
This commit is contained in:
+3
-1
@@ -28,7 +28,9 @@ fn copy_tree(source: &Path, destination: &Path) -> std::io::Result<()> {
|
||||
for entry in std::fs::read_dir(source)? {
|
||||
let entry = entry?;
|
||||
let target = destination.join(entry.file_name());
|
||||
if entry.file_type()?.is_dir() {
|
||||
if entry.file_type()?.is_symlink() {
|
||||
std::os::unix::fs::symlink(std::fs::read_link(entry.path())?, &target)?;
|
||||
} else if entry.file_type()?.is_dir() {
|
||||
copy_tree(&entry.path(), &target)?;
|
||||
} else {
|
||||
std::fs::copy(entry.path(), &target)?;
|
||||
|
||||
Reference in New Issue
Block a user