Fetch quota with files propfind

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-10-16 14:22:47 +02:00 committed by backportbot[bot]
parent 8a710c8837
commit 4530877e5d
1 changed files with 6 additions and 0 deletions

View File

@ -117,6 +117,7 @@
* File sizes
*/
[Client.NS_DAV, 'getcontentlength'],
[Client.NS_DAV, 'quota-available-bytes'],
/**
* Preview availability
*/
@ -394,6 +395,11 @@
data.mountType = mounTypeProp;
}
const quotaAvailableBytes = props['{' + Client.NS_DAV + '}quota-available-bytes']
if (!_.isUndefined(quotaAvailableBytes)) {
data.quotaAvailableBytes = quotaAvailableBytes
}
// extend the parsed data using the custom parsers
_.each(this._fileInfoParsers, function(parserFunction) {
_.extend(data, parserFunction(response, data) || {});