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

Function releaseFileHandle

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

Source from the content-addressed store, hash-verified

173 };
174
175 const releaseFileHandle = (path: string): void => {
176 const next = (fileOpenCounts.get(path) ?? 1) - 1;
177 if (next <= 0) fileOpenCounts.delete(path);
178 else fileOpenCounts.set(path, next);
179 };
180
181 // Sidecar metadata. platformatic VFS has no chmod/chown/utimes, so we store
182 // overrides here and merge them into getattr.

Callers 1

releaseFunction · 0.85

Calls 3

getMethod · 0.65
deleteMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected