MCPcopy Create free account
hub / github.com/github/docs / getTotalDiskSize

Function getTotalDiskSize

script/find-orphaned-assets.js:130–136  ·  view source on GitHub ↗
(filePaths)

Source from the content-addressed store, hash-verified

128}
129
130function getTotalDiskSize(filePaths) {
131 let sum = 0
132 for (const filePath of filePaths) {
133 sum += fs.statSync(filePath).size
134 }
135 return sum
136}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected