ssh_file_list
List a remote server directory with file size, mode, owner, and modification time. Filter by glob, recurse, or use sudo, with clear warnings on output limits.
Instructions
Lists a directory on a server: every entry with its size, mode, owner and modification time. A glob narrows the answer, and a recursive walk that hits the output limit says so instead of returning a shortened list silently. To see what is inside a file, use ssh_file_read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory to list. | |
| sudo | No | List as root, for directories the profile user cannot open. Default: false | |
| pattern | No | Glob matched on the machine: "*.conf". Without it every entry comes back. | |
| profile | Yes | Machine name. | |
| recursive | No | Descend into subdirectories. A deep tree is cut at the output limit and says so. Default: false |