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