SFTP - Rename or move file/directory
SFTP - Rename or move file/directory
Renames or moves a file or directory within the SFTP server. Giving a new path in the same directory renames the item; giving a path in another directory moves it. Ideal for organizing processed files, archiving documents or restructuring remote directories automatically.
Options
Connection
Select the SFTP: Connect action that will be used to reach the server.
Old path
Enter the full current path of the file or directory on the SFTP server.
New path
Enter the new full path of the file or directory on the SFTP server. To rename, keep the same directory and change only the name. To move, give the desired destination path.
Returns
This action has no returns.
Rules and Conditions
- Every field is required.
- The destination directory in the New path must exist on the server.
- If an item with the same name already exists at the destination, the operation fails.
- This action works for both files and directories.