MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / actualSize

Function actualSize

lib/utils.mjs:291–293  ·  view source on GitHub ↗

* Returns the number of bytes that is occupied by the actual files in * the file system. IMPORTANT NOTE: Since it traverses the directory * to find the actual file sizes, this does a costly operation, but * neglible for the small quotas we currently allow. If the quotas * grow bigger, this w

(root)

Source from the content-addressed store, hash-verified

289 * so it needs to be rewritten.
290 */
291function actualSize (root) {
292 return util.promisify(getSize)(root)
293}
294
295function _asyncReadfile (filename) {
296 return util.promisify(fs.readFile)(filename, 'utf-8')

Callers 1

overQuotaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected