filesystem
Get Directory Tree
Generates a tree representation of a directory structure.
POST
/
api
/
filesystem
/
tree
Get Directory Tree
Copy
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"
}'
Copy
{
"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
.
Get Directory Tree
Copy
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"
}'
Copy
{
"name": "project",
"type": "directory",
"children": [
{
"name": "src",
"type": "directory",
"children": [
{
"name": "main.py",
"type": "file"
}
]
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.