aboutsummaryrefslogtreecommitdiffstats
path: root/php/readdir.php
blob: e46d4ad4c96ff3fb67ff0b2c9ee32fe53515f67c (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("/",$user);
	$json=json_encode($ret);
	echo $json;
?>