nextcloud/apps/files/ajax/getstoragestats.php

10 lines
212 B
PHP
Raw Normal View History

<?php
// only need filesystem apps
$RUNTIME_APPTYPES = array('filesystem');
OCP\JSON::checkLoggedIn();
// send back json
2013-09-20 18:46:33 +04:00
OCP\JSON::success(array('data' => \OCA\Files\Helper::buildFileStorageStatistics('/')));