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

Function openHandle

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

Source from the content-addressed store, hash-verified

162 let nextHandle = 1;
163
164 const openHandle = (path: string): number => {
165 const handle = nextHandle++;
166 handles.set(handle, path);
167 return handle;
168 };
169
170 const openFileHandle = (path: string): number => {
171 fileOpenCounts.set(path, (fileOpenCounts.get(path) ?? 0) + 1);

Callers 2

openFileHandleFunction · 0.85
opendirFunction · 0.85

Calls 1

setMethod · 0.65

Tested by

no test coverage detected