MCPcopy Create free account
hub / github.com/cloudflare/agents / escapeLike

Function escapeLike

packages/shell/src/filesystem.ts:1567–1569  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

1565// ── Path helpers ─────────────────────────────────────────────────────
1566
1567function escapeLike(s: string): string {
1568 return s.replace(/[\\%_]/g, (ch) => "\\" + ch);
1569}
1570
1571function normalizePath(path: string): string {
1572 if (!path.startsWith("/")) path = "/" + path;

Callers 2

globMethod · 0.85
deleteDescendantsMethod · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected