Fix getstorage call

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2020-11-06 09:03:20 +01:00
parent 48d843858d
commit 448044d831
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -41,6 +41,7 @@ class AjaxController extends Controller {
* @NoAdminRequired
*/
public function getStorageStats(string $dir = '/'): JSONResponse {
\OC_Util::setupFS();
try {
return new JSONResponse([
'status' => 'success',