(root, serverUri)
| 271 | * could PUT a large file and get away with it. |
| 272 | */ |
| 273 | export async function overQuota (root, serverUri) { |
| 274 | const quota = await getQuota(root, serverUri) |
| 275 | if (quota === Infinity) { |
| 276 | return false |
| 277 | } |
| 278 | // TODO: cache this value? |
| 279 | const size = await actualSize(root) |
| 280 | return (size > quota) |
| 281 | } |
| 282 | |
| 283 | /** |
| 284 | * Returns the number of bytes that is occupied by the actual files in |
no test coverage detected