MCPcopy
hub / github.com/vuejs/devtools-v6 / parseFileStats

Function parseFileStats

extension-zips.js:52–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 }
51
52 async function parseFileStats() {
53 return new Promise((resolve, reject) => {
54 const globber = readDirGlob(path.join('packages', packageDir), { pattern: INCLUDE_GLOBS, skip: SKIP_DIR_GLOBS, mark: true, stat: true })
55 globber.on('match', (match) => {
56 if (!match.stat.isDirectory()) {
57 status.total++
58 }
59 })
60 globber.on('error', (err) => {
61 reject(err)
62 })
63 globber.on('end', () => {
64 resolve()
65 })
66 })
67 }
68 await parseFileStats().catch((err) => {
69 console.error(err)
70 process.exit(1)

Callers 1

writeZipFunction · 0.85

Calls 1

onMethod · 0.80

Tested by

no test coverage detected