filesystem
List Directory Contents
Changed onLists the contents of a directory with optional filtering.
post/api/filesystem/list
Request
- Base URLhttp://localhost:4242/your-computer-name
- URLhttp://localhost:4242/your-computer-name/api/filesystem/list
- Authnone declared
Request body
Example request
{
"include_hidden": false,
"path": "/home/user/documents",
"pattern": "*.txt"
}Response
Successfully listed directory contents
Example response
[
{
"extension": "txt",
"is_hidden": false,
"modified_time": "2024-03-10T12:34:56",
"name": "document.txt",
"path": "/home/user/documents/document.txt",
"size": 1024,
"type": "file"
}
]Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking