MCPcopy
hub / github.com/webpack/webpack / getCacheFileTimes

Function getCacheFileTimes

test/PersistentCaching.test.js:105–113  ·  test/PersistentCaching.test.js::getCacheFileTimes
()

Source from the content-addressed store, hash-verified

103 });
104
105 const getCacheFileTimes = async () => {
106 const cacheFiles = (await readdir(cachePath)).sort();
107 return new Map(
108 cacheFiles.map((f) => [
109 f,
110 fs.statSync(path.join(cachePath, f)).mtime.toString()
111 ])
112 );
113 };
114
115 const execute = () => {
116 /** @type {Record<string, { exports: unknown }>} */

Callers 1

Calls 2

sortMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected