From e044fc4255aa64ef1dbc3d20ed87ed6e2f61a6bd Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 9 May 2021 19:01:59 -0400 Subject: Code refactoring --- src/cmd_fsops.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd_fsops.cc') 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(src), dest); + utils::saveJson(utils::instantiate(src)->serialize(), dest); } else { mkdir({dest}); for(fs::directory_entry de : fs::directory_iterator(src)) { -- cgit v1.2.3