diff options
author | adam <adam@> | 2021-02-12 19:31:27 +0200 |
---|---|---|
committer | adam <adam@> | 2021-02-12 19:31:27 +0200 |
commit | 661172e6ce30235851fdee0736df0e532e997bd4 (patch) | |
tree | 99d727de1e54bad695a6616d95ed08e64798b640 /php/readdir.php | |
parent | b1689d03b0ac8a601f3ff4a225729d1e15b317ba (diff) | |
download | fileup-661172e6ce30235851fdee0736df0e532e997bd4.tar.gz |
the files show but there are still things to fix
Diffstat (limited to 'php/readdir.php')
-rw-r--r-- | php/readdir.php | 5 |
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; ?> |