MCPcopy Create free account
hub / github.com/block/buzz / basename

Function basename

desktop/src/features/agents/ui/agentSessionFileEditDiff.ts:200–203  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

198}
199
200function basename(path: string) {
201 const parts = path.replace(/\\/g, "/").split("/");
202 return parts[parts.length - 1] || path;
203}

Callers 2

buildFileEditDiffFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected