blob: 81945804fc91c4a4a1fe2701c838f9064a8d8b34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
<?php
require_once "node.php";
session_start();
$user=$_SESSION['user_object'];
$path=$_POST['path'];
//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_contents($path,$user);
$json=json_encode($ret);
echo $json;
?>
|