Browse Source

pass fileinfo to getStorageInfo

tags/v8.1.0alpha1
Robin Appelman 9 years ago
parent
commit
9abaa0cc61
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      lib/private/connector/sabre/directory.php

+ 1
- 2
lib/private/connector/sabre/directory.php View File

@@ -241,8 +241,7 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node
return $this->quotaInfo;
}
try {
$path = \OC\Files\Filesystem::getView()->getRelativePath($this->info->getPath());
$storageInfo = OC_Helper::getStorageInfo($path);
$storageInfo = OC_Helper::getStorageInfo($this->info->getPath(), $this->info);
$this->quotaInfo = array(
$storageInfo['used'],
$storageInfo['free']

Loading…
Cancel
Save