MCPcopy Create free account
hub / github.com/cloudflare/computer / normalizePath

Function normalizePath

packages/computer/src/git/diff.ts:279–285  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

277}
278
279function normalizePath(p: string): string {
280 // Drop leading './' and trailing '/'.
281 let out = p;
282 if (out.startsWith("./")) out = out.slice(2);
283 while (out.endsWith("/")) out = out.slice(0, -1);
284 return out;
285}
286
287async function readBlobAsText(
288 git: IsomorphicGitDiffClient,

Callers 1

makePathFilterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected