MCPcopy Index your code
hub / github.com/coder/mux / readFile

Method readFile

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

Source from the content-addressed store, hash-verified

713 }
714
715 override readFile(filePath: string, abortSignal?: AbortSignal): ReadableStream<Uint8Array> {
716 const hostPath = this.resolveHostPathForMounted(filePath);
717 if (hostPath) {
718 return super.readFile(hostPath, abortSignal);
719 }
720 return this.readFileViaExec(filePath, abortSignal);
721 }
722
723 override writeFile(filePath: string, abortSignal?: AbortSignal): WritableStream<Uint8Array> {
724 const hostPath = this.resolveHostPathForMounted(filePath);

Callers

nothing calls this directly

Calls 3

readFileViaExecMethod · 0.95
readFileMethod · 0.65

Tested by

no test coverage detected