summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/getstoragestats.php
blob: dd8af39bada3ec55abb2c0fde56b000463823faa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?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)));