MCPcopy
hub / github.com/coder/mux / readFile

Method readFile

src/node/runtime/Runtime.ts:379–379  ·  view source on GitHub ↗

* Read file contents as a stream * @param path Absolute or relative path to file * @param abortSignal Optional abort signal for cancellation * @returns Readable stream of file contents * @throws RuntimeError if file cannot be read

(path: string, abortSignal?: AbortSignal)

Source from the content-addressed store, hash-verified

377 * @throws RuntimeError if file cannot be read
378 */
379 readFile(path: string, abortSignal?: AbortSignal): ReadableStream<Uint8Array>;
380
381 /**
382 * Write file contents atomically from a stream

Callers 15

parseWorkflowArgsFunction · 0.65
trust.test.tsFile · 0.65
run.test.tsFile · 0.65
muxignore.test.tsFile · 0.65
syncMuxignoreFilesFunction · 0.65

Implementers 1

MultiProjectRuntimesrc/node/runtime/multiProjectRuntime.t

Calls

no outgoing calls

Tested by 12

readFileMethod · 0.52
readStoreFileFunction · 0.52
cloneWithFakeGitFunction · 0.52
readLoggedEnvFunction · 0.52
readJsonlFileFunction · 0.52
readFileMethod · 0.52
readFileMethod · 0.52
readFileFunction · 0.52
readFileMethod · 0.52
readFileMethod · 0.52
readSSHConfigFunction · 0.52