mirror of
https://github.com/nextcloud/server.git
synced 2024-08-13 14:11:10 +02:00
14 lines
231 B
PHP
14 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)));
|