MCPcopy
hub / github.com/apache/echarts / getFolderSize

Function getFolderSize

test/runTest/store.js:291–298  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

289
290
291async function getFolderSize(dir) {
292 const files = await globby(dir);
293 let size = 0;
294 for (let file of files) {
295 size += fs.statSync(file).size;
296 }
297 return size;
298}
299/**
300 * Get results of all runs
301 * @return [ { id, expectedVersion, actualVersion, renderer, lastRunTime, total, finished, passed, diskSize } ]

Callers 1

store.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…