Rename Activity
The Rename activity enables users to modify the name of an existing file or folder on an FTP server. This ensures proper organization and identification of resources within the remote file system.
| Field | Description | Requirement |
|---|---|---|
| Connection name | Reference name of the FTP connection to be used. | Optional |
| Current name | The full path and current name of the file or folder on the FTP server. | Required |
| New name | The full path and new name for the file or folder on the FTP server. | Required |
| Overwrite | Specifies whether to overwrite an existing file or folder if a name conflict occurs. | Optional |
Action Types & Examples
Connection Name
- Format: String
- Example Result:
${ftpConnection}
Current Name
- Format: String
- Example Result:
/home/Temp/Test
New Name
- Format: String
- Example Result:
/home/Temp/Test2
Overwrite
- Format: Boolean
- Example Result:
True
Implementation Examples
Field Setup - Connection name: ${ftpConnection}
Execution Parameters - Current name: /home/Temp/Test - New name: /home/Temp/Test2 - Overwrite: True
Technical Notes
Ensure the FTP user account configured for the connection has the necessary permissions (read, write, delete) on the source and target directories to successfully rename files or folders. Path specifications should be absolute or relative to the FTP user's home directory.