MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getFileMetadata

Function getFileMetadata

src/sidebarApps/searchInFiles/indexWorker.js:309–314  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

307}
308
309function getFileMetadata(file) {
310 return {
311 size: file.size || 0,
312 modifiedDate: normalizeModifiedDate(file.modifiedDate),
313 };
314}
315
316function normalizeModifiedDate(value) {
317 if (!value) return 0;

Callers 3

buildRecordFunction · 0.85
buildSkippedRecordFunction · 0.85
isRecordCurrentFunction · 0.85

Calls 1

normalizeModifiedDateFunction · 0.70

Tested by

no test coverage detected