rename
Renames or moves a file or directory to a new path on a Globus endpoint. Requires endpoint UUID, source path, and destination path.
Instructions
Rename or move a file or directory on a Globus endpoint.
The source path must exist. The destination path must not exist. Most endpoints require the destination to be on the same filesystem.
Args: endpoint_id: The UUID of the endpoint. source_path: Current path of the file or directory. dest_path: New path for the file or directory.
Returns: Dict with 'message' confirming the rename and 'code'.
Examples: rename("endpoint-uuid", "/data/old_name.txt", "/data/new_name.txt") rename("endpoint-uuid", "/scratch/temp", "/scratch/results")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint_id | Yes | ||
| source_path | Yes | ||
| dest_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||