* @throws \OCP\Files\NotFoundException
*/
protected function getStorageInfo(string $dir = '/') {
- \OC_Util::setupFS();
$rootInfo = \OC\Files\Filesystem::getFileInfo('/', false);
return \OC_Helper::getStorageInfo($dir, $rootInfo ?: null);
\OCP\Util::addScript('files', 'merged-index', 'files');
\OCP\Util::addScript('files', 'main');
- // mostly for the home storage's free space
- // FIXME: Make non static
- $storageInfo = $this->getStorageInfo();
-
$userId = $this->userSession->getUser()->getUID();
// Get all the user favorites to create a submenu