File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -506,6 +506,9 @@ public static function getStorageInfo($path, $rootInfo = null) {
506506 if ($ storage ->instanceOfStorage ('\OCA\Files_Sharing\SharedStorage ' )) {
507507 $ includeExtStorage = false ;
508508 $ sourceStorage = $ storage ->getSourceStorage ();
509+ $ internalPath = $ storage ->getUnjailedPath ($ rootInfo ->getInternalPath ());
510+ } else {
511+ $ internalPath = $ rootInfo ->getInternalPath ();
509512 }
510513 if ($ includeExtStorage ) {
511514 if ($ storage ->instanceOfStorage ('\OC\Files\Storage\Home ' )
@@ -528,7 +531,7 @@ public static function getStorageInfo($path, $rootInfo = null) {
528531 /** @var \OC\Files\Storage\Wrapper\Quota $storage */
529532 $ quota = $ sourceStorage ->getQuota ();
530533 }
531- $ free = $ sourceStorage ->free_space ($ rootInfo -> getInternalPath () );
534+ $ free = $ sourceStorage ->free_space ($ internalPath );
532535 if ($ free >= 0 ) {
533536 $ total = $ free + $ used ;
534537 } else {
You can’t perform that action at this time.
0 commit comments