aboutsummaryrefslogtreecommitdiffstats
path: root/php/readdir.php
blob: 04587eefa2abb5fba45785676222137740808b96 (plain)
1
2
3
4
5
6
7
8
9
10
<?php
	require_once "node.php";
	session_start();
	$user=$_SESSION['user_object'];

//echo '[ { "name": "file1.txt", "mimetype": "text/plain", "is_directory": false }, { "name": "file2.pdf", "mimetype": "application/pdf", "is_directory": false }, { "name": "dir", "mimetype": "", "is_directory": true } ] ';
	$ret=get_directory_contents("/",$user);
	$json=json_encode($ret);
	echo $json;
?>