diff options
author | adam <adam@> | 2021-02-12 22:35:02 +0200 |
---|---|---|
committer | adam <adam@> | 2021-02-12 22:35:02 +0200 |
commit | b79da4bf1b39d6b203a083c7bcbef106dff06eaa (patch) | |
tree | 29db21995263495b9614f00ee1dccca4be76adaa /php/readdir.php | |
parent | 022e478554fdb7110f3029fab49f706ba1d893ad (diff) | |
download | fileup-b79da4bf1b39d6b203a083c7bcbef106dff06eaa.tar.gz |
mkdir
Diffstat (limited to 'php/readdir.php')
-rw-r--r-- | php/readdir.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/php/readdir.php b/php/readdir.php index e46d4ad..04587ee 100644 --- a/php/readdir.php +++ b/php/readdir.php @@ -1,10 +1,10 @@ <?php require_once "node.php"; session_start(); - $user=$_SESSION["user_object"]; + $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); + $ret=get_directory_contents("/",$user); $json=json_encode($ret); echo $json; ?> |