MCPcopy
hub / github.com/microsoft/vscode-js-debug / readFileRaw

Function readFileRaw

src/common/fsUtils.ts:125–127  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

123export const writeFile = util.promisify(fs.writeFile);
124
125export function readFileRaw(path: string): Promise<Buffer> {
126 return fs.promises.readFile(path).catch(() => Buffer.alloc(0));
127}
128
129export interface IFsUtils {
130 /**

Callers

nothing calls this directly

Calls 1

readFileMethod · 0.65

Tested by

no test coverage detected