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

Function disableDirectWrites

packages/computerd/src/fuse/driver.test.ts:51–60  ·  view source on GitHub ↗
(vfs: unknown)

Source from the content-addressed store, hash-verified

49const notImplementedOperationNames = ["error", "mknod"];
50
51function disableDirectWrites(vfs: unknown): void {
52 const target = vfs as {
53 createFileSync?: unknown;
54 writeRangeSync?: unknown;
55 truncateFileSync?: unknown;
56 };
57 delete target.createFileSync;
58 delete target.writeRangeSync;
59 delete target.truncateFileSync;
60}
61
62test("FUSE ops expose the complete fuse-native operation surface", async () => {
63 const ops = makeFUSEOps((await createNodeVirtualFileSystem()).vfs);

Callers 1

driver.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected