MCPcopy Create free account
hub / github.com/dethcrypto/dethcode / readFile

Function readFile

packages/ethereum-viewer/src/fs/fileSystem.ts:32–40  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

30 });
31 },
32 readFile(path: string): string {
33 if (!path.startsWith("/")) path = "/" + path;
34
35 const buffer = fs.readFile(
36 vscode.Uri.from({ scheme: "memfs", path: path })
37 );
38
39 return decoder.decode(buffer);
40 },
41 onDidChangeFile: fs.onDidChangeFile.bind(fs),
42 };
43};

Callers

nothing calls this directly

Calls 1

readFileMethod · 0.80

Tested by

no test coverage detected