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

Function createLocalFileReader

src/node/utils/main/instructionFiles.ts:53–57  ·  view source on GitHub ↗

* Create a FileReader for local filesystem access.

()

Source from the content-addressed store, hash-verified

51 * Create a FileReader for local filesystem access.
52 */
53function createLocalFileReader(): FileReader {
54 return {
55 readFile: (filePath: string) => fs.readFile(filePath, "utf-8"),
56 };
57}
58
59/**
60 * Create a FileReader for Runtime-based access (supports SSH).

Callers 1

readInstructionSetFunction · 0.85

Calls 1

readFileMethod · 0.65

Tested by

no test coverage detected