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

Method writeFile

packages/computer/src/mounts/types.ts:84–84  ·  view source on GitHub ↗
(absPath: string, source: ReadableStream<Uint8Array>, mode?: number)

Source from the content-addressed store, hash-verified

82export interface MountWriteAPI {
83 readonly root: string;
84 writeFile(absPath: string, source: ReadableStream<Uint8Array>, mode?: number): Promise<void>;
85 mkdir(absPath: string, mode?: number): Promise<void>;
86}

Callers 15

provider.test.tsFile · 0.65
filesystem.test.tsFile · 0.65
shim.test.tsFile · 0.65
computerd.test.tsFile · 0.65
logger.test.tsFile · 0.65
stub.test.tsFile · 0.65
materializeFunction · 0.65
writeFileMethod · 0.65
client.test.tsFile · 0.65
workspace.test.tsFile · 0.65
end-to-end.test.tsFile · 0.65

Implementers 5

SQLiteWorkspaceProviderpackages/dofs/src/provider.ts
WorkspaceFilesystempackages/dofs/src/fs/filesystem.ts
WorkspaceFilesystemStubpackages/computer/src/stub.ts
WorkspaceFsAdapterpackages/computer/src/backends/worker-
WorkspaceRuntimeCapabilitypackages/computer/src/runtime/capabili

Calls

no outgoing calls

Tested by 10

materializeFunction · 0.52
stageFunction · 0.52
commitFunction · 0.52
commitFunction · 0.52
commitFunction · 0.52
commitFileFunction · 0.52
commitFunction · 0.52
writeAtFunction · 0.52
materializeFunction · 0.52
runSoakFunction · 0.52