2
0
mirror of https://github.com/meganz/MEGAcmd synced 2025-08-22 01:47:24 +00:00

Fix syncs on windows always showing an incorrect "processing" state

This commit is contained in:
Diego Ximenez 2025-03-21 19:29:50 +01:00
parent e0783128dc
commit d0e33db8fb
No known key found for this signature in database
GPG Key ID: 8AF794BDD5EF88FD

View File

@ -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));