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

Function isPendingCreate

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

Source from the content-addressed store, hash-verified

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 => {
291 let dirtyEntries = 0;

Callers 4

existsFunction · 0.85
unlinkFunction · 0.85
renameFunction · 0.85
accessFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected