POST
/
api
/
filesystem
/
tree
Get Directory Tree
curl --request POST \
  --url http://localhost:4242/{computer_name}/api/filesystem/tree \
  --header 'Content-Type: application/json' \
  --data '{
  "include_hidden": false,
  "max_depth": 3,
  "path": "/home/user/project",
  "pattern": "*.py"
}'
{
  "name": "project",
  "type": "directory",
  "children": [
    {
      "name": "src",
      "type": "directory",
      "children": [
        {
          "name": "main.py",
          "type": "file"
        }
      ]
    }
  ]
}

Body

application/json

Response

200
application/json

Successfully generated directory tree

The response is of type object.