SFTP Rename / Move
Rename or move a file on an SFTP server. This node can change a file's name, move it to a different directory, or both at the same time.
Requires an SFTP connection.
Configuration
| Field | Description | Notes |
|---|---|---|
| SFTP Connection | The SFTP connection to use | Required. Select from your configured SFTP connections. |
| Source Path | The current path of the file | Required. Supports templates. Example: /inbox/data.csv |
| Destination Path | The new path for the file | Required. Supports templates. Example: /archive/data_processed.csv |
Input
The node accepts an optional data input, but the Source Path and Destination Path must be configured explicitly in the node settings.
Output
The node outputs a single item:
| Field | Description |
|---|---|
success | true if the operation completed |
old_path | The original file path |
new_path | The new file path |
Use Cases
- Archiving processed files -- Move files from an
inbox/directory to anarchive/directory after processing. - Renaming with timestamps -- Use templates to include dates or execution IDs in filenames, e.g.,
/archive/data_{{ current_date }}.csv. - Organizing uploads -- Sort incoming files into subdirectories based on their content or metadata.
TIP
Both the Source Path and Destination Path support templates, so you can dynamically build paths using data from upstream nodes. For example, use the path field from an SFTP List Files output as the source, and construct the destination with a template.