MCPcopy Create free account
hub / github.com/acoyfellow/cloudbox / toRemotePath

Function toRemotePath

scripts/cloudbox-live-sync.mjs:64–68  ·  view source on GitHub ↗
(fullPath)

Source from the content-addressed store, hash-verified

62}
63
64function toRemotePath(fullPath) {
65 const localPath = relative(root, fullPath);
66 if (!localPath || localPath === "." || localPath.startsWith(`..${sep}`) || localPath === "..") return null;
67 return localPath.split(sep).join("/");
68}
69
70function isIgnored(remotePath) {
71 if (remotePath === ".cloudbox-live.json") return true;

Callers 1

queueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected