MCPcopy
hub / github.com/webpack/webpack / isExistenceOnly

Function isExistenceOnly

lib/FileSystemInfo.js:1238–1244  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

1236 * @returns {entry is ExistenceOnlyTimeEntry} true if the entry exists but carries no time info
1237 */
1238const isExistenceOnly = (entry) => {
1239 if (entry === undefined || entry === null || entry === "ignore") return false;
1240 return (
1241 /** @type {Partial<FileSystemInfoEntry> & Partial<ContextFileSystemInfoEntry>} */
1242 (entry).safeTime === undefined
1243 );
1244};
1245
1246/** @typedef {(err?: WebpackError | null, result?: boolean) => void} CheckSnapshotValidCallback */
1247

Callers 8

getFileTimestampMethod · 0.85
getContextTimestampMethod · 0.85
processCapturedFilesMethod · 0.85
_readContextTimestampMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected