Fetch quota with files propfind
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
8a710c8837
commit
4530877e5d
|
@ -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) || {});
|
||||
|
|
Loading…
Reference in New Issue