filesystem
Search Files
Searches for files matching a pattern in a directory tree.
POST
Body
application/json
Root directory to start search from
Example:
"/home/user"
Glob pattern to search for
Example:
"*.txt"
Maximum number of results to return
Required range:
x > 0
Example:
100
Whether to include hidden files/directories
Example:
false
Response
200
application/json
Successfully searched for files
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"