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

Function accessFor

packages/computerd/src/fuse/backend.test.ts:5–12  ·  view source on GitHub ↗
(paths: string[])

Source from the content-addressed store, hash-verified

3import { parseFuseMountMode, resolveFuseBackend } from "./index.js";
4
5function accessFor(paths: string[]) {
6 const accessible = new Set(paths);
7 return async (path: string) => {
8 if (!accessible.has(path)) {
9 throw Object.assign(new Error(`missing ${path}`), { code: "ENOENT" });
10 }
11 };
12}
13
14// ---------- parseFuseMountMode ----------------------------------
15

Callers 1

backend.test.tsFile · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected