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

Function baseName

packages/computerd/src/fuse/driver.ts:287–287  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

285 return parent === "." ? "/" : parent;
286 };
287 const baseName = (path: string): string => posix.basename(path);
288 const isPendingCreate = (path: string): boolean => files.get(path)?.pendingCreate === true;
289 const exists = (path: string): boolean => isPendingCreate(path) || vfs.existsSync(toVfs(path));
290 const getBufferStats = (): FuseBufferStats => {

Callers 1

readdirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected