2013-01-11 19:47:28 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// only need filesystem apps
|
|
|
|
$RUNTIME_APPTYPES = array('filesystem');
|
|
|
|
|
2013-11-06 13:55:19 +04:00
|
|
|
$dir = '/';
|
|
|
|
|
|
|
|
if (isset($_GET['dir'])) {
|
|
|
|
$dir = $_GET['dir'];
|
|
|
|
}
|
|
|
|
|
2013-01-11 19:47:28 +04:00
|
|
|
OCP\JSON::checkLoggedIn();
|
|
|
|
|
|
|
|
// send back json
|
2013-11-06 13:55:19 +04:00
|
|
|
OCP\JSON::success(array('data' => \OCA\Files\Helper::buildFileStorageStatistics($dir)));
|