aboutsummaryrefslogtreecommitdiffstats
path: root/php/readdir.php
blob: b913cb1cbcf2aa203b7c517819bbf802d54836b4 (plain)
1
2
3
4
5
6
7
8
9
<?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 } ] ';
	echo get_directory("/",$user);
	error_log(print_r(get_directory("/",$user)).gettype(get_directory("/",$user)));
?>