diff --git a/src/sync_command.cpp b/src/sync_command.cpp index 5f135ad8..bd389e53 100644 --- a/src/sync_command.cpp +++ b/src/sync_command.cpp @@ -107,7 +107,10 @@ void printSingleSync(mega::MegaApi& api, mega::MegaSync& sync, mega::MegaNode* n cd.addValue("REMOTEPATH", sync.getLastKnownMegaFolder()); cd.addValue("RUN_STATE", syncRunStateStr(sync.getRunState())); - std::string localFolder = sync.getLocalFolder(); + std::string folder = sync.getLocalFolder(); + + string localFolder; + mega::LocalPath::path2local(&folder, &localFolder); int statepath = api.syncPathState(&localFolder); cd.addValue("STATUS", getSyncPathStateStr(statepath));