|
|
|
@ -10,4 +10,8 @@ OCP\JSON::checkLoggedIn(); |
|
|
|
|
\OC::$server->getSession()->close(); |
|
|
|
|
|
|
|
|
|
// send back json |
|
|
|
|
OCP\JSON::success(array('data' => \OCA\Files\Helper::buildFileStorageStatistics($dir))); |
|
|
|
|
try { |
|
|
|
|
OCP\JSON::success(array('data' => \OCA\Files\Helper::buildFileStorageStatistics($dir))); |
|
|
|
|
} catch (\OCP\Files\NotFoundException $e) { |
|
|
|
|
OCP\JSON::error(['data' => ['message' => 'Folder not found']]); |
|
|
|
|
} |
|
|
|
|