]> source.dussan.org Git - nextcloud-server.git/commitdiff
pass fileinfo to getStorageInfo
authorRobin Appelman <icewind@owncloud.com>
Fri, 13 Feb 2015 15:01:28 +0000 (16:01 +0100)
committerRobin Appelman <icewind@owncloud.com>
Fri, 13 Feb 2015 16:59:58 +0000 (17:59 +0100)
lib/private/connector/sabre/directory.php

index 702addfe5291e95562c3999d1c2b26ac4b78414c..7c35bfa1791477bf61553c8f969a787b60a217cc 100644 (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']