cURL
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" } ] } ] }
Generates a tree representation of a directory structure.
Root directory path
"/home/user/project"
Maximum depth to traverse
x >= 1
3
Whether to include hidden files/directories
false
Glob pattern to filter results
"*.py"
Successfully generated directory tree
The response is of type object.
object