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

Function openFileHandle

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

Source from the content-addressed store, hash-verified

168 };
169
170 const openFileHandle = (path: string): number => {
171 fileOpenCounts.set(path, (fileOpenCounts.get(path) ?? 0) + 1);
172 return openHandle(path);
173 };
174
175 const releaseFileHandle = (path: string): void => {
176 const next = (fileOpenCounts.get(path) ?? 1) - 1;

Callers 2

openFunction · 0.85
createFunction · 0.85

Calls 3

openHandleFunction · 0.85
setMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected