summaryrefslogtreecommitdiff
path: root/src/operations/cp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/operations/cp.rs')
-rw-r--r--src/operations/cp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/operations/cp.rs b/src/operations/cp.rs
index 27be3ce..33d4d04 100644
--- a/src/operations/cp.rs
+++ b/src/operations/cp.rs
@@ -27,7 +27,7 @@ pub fn copy(source_path: impl AsRef<Path>, destination_path: impl AsRef<Path>) -
// The destination is filled with the contents of the source directory
for entry in list_directory(source_path)? {
let destination_path = destination_path.as_ref().join(&entry.name);
- copy_file(entry.path, destination_path)?;
+ copy(entry.path, destination_path)?;
}
}
(EntryType::Directory, None) => {