aboutsummaryrefslogtreecommitdiff
path: root/src/cmd_fsops.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_fsops.cc')
-rw-r--r--src/cmd_fsops.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_fsops.cc b/src/cmd_fsops.cc
index eca505e..5133313 100644
--- a/src/cmd_fsops.cc
+++ b/src/cmd_fsops.cc
@@ -55,7 +55,7 @@ namespace cmd {
void cp(fs::path src, fs::path dest) {
if(fs::directory_entry(src).is_regular_file()) {
- utils::saveJson(*utils::instantiate<entry::Entry>(src), dest);
+ utils::saveJson(utils::instantiate<entry::Entry>(src)->serialize(), dest);
} else {
mkdir({dest});
for(fs::directory_entry de : fs::directory_iterator(src)) {