Skip to content

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

FieldDescriptionNotes
SFTP ConnectionThe SFTP connection to useRequired. Select from your configured SFTP connections.
Source PathThe current path of the fileRequired. Supports templates. Example: /inbox/data.csv
Destination PathThe new path for the fileRequired. 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:

FieldDescription
successtrue if the operation completed
old_pathThe original file path
new_pathThe new file path

Use Cases

  • Archiving processed files -- Move files from an inbox/ directory to an archive/ 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.