(paths: string[])
| 3 | import { parseFuseMountMode, resolveFuseBackend } from "./index.js"; |
| 4 | |
| 5 | function 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 |