getQuota method
Retrieves the quota for the user/quotaRoot.
Optionally define the quotaRoot which defaults to "".
Note that the server needs to support the
QUOTA capability.
Implementation
Future<QuotaResult> getQuota({String quotaRoot = '""'}) {
final quotaRootParameter =
quotaRoot.contains(' ') ? '"$quotaRoot"' : quotaRoot;
final cmd = Command(
'GETQUOTA $quotaRootParameter',
writeTimeout: defaultWriteTimeout,
responseTimeout: defaultResponseTimeout,
);
final parser = QuotaParser();
return sendCommand<QuotaResult>(cmd, parser);
}