MCPcopy Create free account
hub / github.com/observablehq/framework / redactFileInfo

Function redactFileInfo

test/javascript/module-test.ts:137–142  ·  view source on GitHub ↗
(root: string, path: string)

Source from the content-addressed store, hash-verified

135}
136
137function redactFileInfo(root: string, path: string): Omit<FileInfo, "mtimeMs"> | undefined {
138 const info = getFileInfo(root, path);
139 if (!info) return;
140 const {mtimeMs, ...rest} = info;
141 return rest;
142}

Callers 1

module-test.tsFile · 0.85

Calls 1

getFileInfoFunction · 0.85

Tested by

no test coverage detected