MCPcopy
hub / github.com/apify/crawlee / getStats

Function getStats

test/e2e/tools.mjs:51–60  ·  view source on GitHub ↗
(dirName)

Source from the content-addressed store, hash-verified

49 * @param {string} dirName
50 */
51export async function getStats(dirName) {
52 const dir = getStorage(dirName);
53 const path = join(dir, `key_value_stores/default/SDK_CRAWLER_STATISTICS_0.json`);
54
55 if (!existsSync(path)) {
56 return false;
57 }
58
59 return fs.readJSON(path);
60}
61
62/**
63 * @param {string | URL} url

Callers 1

runActorFunction · 0.85

Calls 1

getStorageFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…