MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / CmdPruneLocalLegacyMetadata

Function CmdPruneLocalLegacyMetadata

src/common/cli.cpp:750–763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

748}
749
750std::string CmdPruneLocalLegacyMetadata(const std::string& cloudRootArg) {
751 std::string cloudRoot = NormalizeCloudRoot(cloudRootArg);
752 if (cloudRoot.empty()) {
753 return JsonError("cloud_root is required");
754 }
755
756 auto stats = LegacyMetadataCleanup::PruneLocalLegacyAppMetadata(cloudRoot);
757 return JsonObject({
758 {"success", JsonBool(stats.errors == 0)},
759 {"files_removed", JsonInt(stats.filesRemoved)},
760 {"dirs_removed", JsonInt(stats.dirsRemoved)},
761 {"errors", JsonInt(stats.errors)}
762 });
763}
764
765std::string CmdPublishFullManifest(const std::string& provider, const std::string& accountId, const std::string& appId,
766 const std::string& cloudRootArg) {

Callers 1

RunCliFunction · 0.85

Calls 6

NormalizeCloudRootFunction · 0.85
JsonErrorFunction · 0.85
JsonObjectFunction · 0.85
JsonBoolFunction · 0.85
JsonIntFunction · 0.85

Tested by

no test coverage detected