MCPcopy Create free account
hub / github.com/Snapchat/Valdi / readFileRaw

Function readFileRaw

valdi/vscode_debugger/src/common/fsUtils.ts:69–71  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

67export const writeFile = util.promisify(fs.writeFile);
68
69export function readFileRaw(path: string): Promise<Buffer> {
70 return fs.promises.readFile(path).catch(() => Buffer.alloc(0));
71}
72
73export function exists(path: string): Promise<boolean> {
74 return new Promise(cb => {

Callers 1

handleFunction · 0.90

Calls 1

readFileMethod · 0.65

Tested by

no test coverage detected