ls
List files and directories on a Globus endpoint. Supports viewing hidden files, detailed metadata, and recursive subdirectory listing.
Instructions
List the contents of a directory on a Globus endpoint.
Args: endpoint_id: The UUID of the endpoint. path: Directory path to list. If None, lists the default directory. all: If True, show hidden files (those starting with '.'). long: If True, include detailed metadata (size, permissions, dates). recursive: If True, recursively list subdirectories (up to depth 3).
Returns: List of file/directory entries. Each entry includes 'name', 'type' ('file' or 'dir'), and optionally 'size', 'last_modified', etc.
Examples: ls("endpoint-uuid", "/home/user") ls("endpoint-uuid", "/data", all=True, long=True) ls("endpoint-uuid", "/project", recursive=True)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint_id | Yes | ||
| path | No | ||
| all | No | ||
| long | No | ||
| recursive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |