filesystem
List Directory Contents
Lists the contents of a directory with optional filtering.
POST
Body
application/json
Directory path to list
Example:
"/home/user/documents"
Whether to include hidden files/directories
Example:
false
Glob pattern to filter results
Example:
"*.txt"
Response
200
application/json
Successfully listed directory contents
File or directory name
Example:
"document.txt"
Full path to the file or directory
Example:
"/home/user/documents/document.txt"
Type of entry: 'file' or 'directory'
Example:
"file"
Size in bytes
Example:
1024
Last modification time
Example:
"2024-03-10T12:34:56"
Whether the file/directory is hidden
Example:
false
File extension if applicable
Example:
"txt"