cURL
curl --request POST \ --url http://localhost:4242/{computer_name}/api/filesystem/list \ --header 'Content-Type: application/json' \ --data '{ "include_hidden": false, "path": "/home/user/documents", "pattern": "*.txt" }'
[ { "name": "document.txt", "path": "/home/user/documents/document.txt", "type": "file", "size": 1024, "modified_time": "2024-03-10T12:34:56", "is_hidden": false, "extension": "txt" } ]
Lists the contents of a directory with optional filtering.
Successfully listed directory contents
The response is of type FileInfo · object[].
FileInfo · object[]