aboutsummaryrefslogtreecommitdiffstats
path: root/php/readdir.php
diff options
context:
space:
mode:
Diffstat (limited to 'php/readdir.php')
-rw-r--r--php/readdir.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/php/readdir.php b/php/readdir.php
index b913cb1..e46d4ad 100644
--- a/php/readdir.php
+++ b/php/readdir.php
@@ -4,6 +4,7 @@
$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)));
+ $ret=get_directory("/",$user);
+ $json=json_encode($ret);
+ echo $json;
?>