We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b02130 commit 889ed4aCopy full SHA for 889ed4a
lib/utils.js
@@ -293,6 +293,11 @@ async function overQuota (root, serverUri) {
293
if (quota === Infinity) {
294
return false
295
}
296
+ // IMPORTANT NOTE: The following will traverse the directory to find
297
+ // the actual file size of the files in the file system. This is a
298
+ // costly operation, but neglible for the small quotas we currently
299
+ // allow. If the quotas grow bigger, this will significantly reduce
300
+ // write performance, and so it needs to be rewritten.
301
var actualSize = await _asyncGetSize(root)
302
return (actualSize > quota)
303
0 commit comments