6ff96b34ad
Conflicts: apps/files/ajax/rawlist.php cron.php ocs/v1.php
13 lines
231 B
PHP
13 lines
231 B
PHP
<?php
|
|
|
|
$dir = '/';
|
|
|
|
if (isset($_GET['dir'])) {
|
|
$dir = $_GET['dir'];
|
|
}
|
|
|
|
OCP\JSON::checkLoggedIn();
|
|
\OC::$session->close();
|
|
|
|
// send back json
|
|
OCP\JSON::success(array('data' => \OCA\Files\Helper::buildFileStorageStatistics($dir)));
|