Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions apps/files/lib/Controller/ViewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ protected function renderScript($appName, $scriptName) {
* @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);
Expand Down Expand Up @@ -190,10 +189,6 @@ public function index($dir = '', $view = '', $fileid = null, $fileNotFound = fal
\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
Expand Down