MCPcopy Create free account
hub / github.com/coder/mux / writeFile

Method writeFile

src/node/runtime/DevcontainerRuntime.ts:723–729  ·  view source on GitHub ↗
(filePath: string, abortSignal?: AbortSignal)

Source from the content-addressed store, hash-verified

721 }
722
723 override writeFile(filePath: string, abortSignal?: AbortSignal): WritableStream<Uint8Array> {
724 const hostPath = this.resolveHostPathForMounted(filePath);
725 if (hostPath) {
726 return super.writeFile(hostPath, abortSignal);
727 }
728 return this.writeFileViaExec(filePath, abortSignal);
729 }
730
731 override async stat(filePath: string, abortSignal?: AbortSignal): Promise<FileStat> {
732 const hostPath = this.resolveHostPathForMounted(filePath);

Callers

nothing calls this directly

Calls 3

writeFileViaExecMethod · 0.95
writeFileMethod · 0.65

Tested by

no test coverage detected