aboutsummaryrefslogtreecommitdiff
path: root/src/cmd_fsops.cc
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-05-09 19:01:59 -0400
committerYour Name <you@example.com>2021-05-09 19:01:59 -0400
commite044fc4255aa64ef1dbc3d20ed87ed6e2f61a6bd (patch)
tree344c09421c5839a764a132fe9166f0e6e3f90e45 /src/cmd_fsops.cc
parentd13358b71ec15085f2638fd9c3fc634df62dfc94 (diff)
downloaddmtool-e044fc4255aa64ef1dbc3d20ed87ed6e2f61a6bd.tar.gz
dmtool-e044fc4255aa64ef1dbc3d20ed87ed6e2f61a6bd.tar.bz2
dmtool-e044fc4255aa64ef1dbc3d20ed87ed6e2f61a6bd.zip
Code refactoring
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)) {