SFTP Move / Rename
SFTP Move / Rename
Section titled “SFTP Move / Rename”Type: sftp-move · Package: SFTP Activities v1.0.0
Moves or renames a file within the SFTP server. Widely used to archive the processed: after downloading a file, move it to a /procesados folder on the server so that it is not taken again.
How it works
Section titled “How it works”Move the file from sourcePath to destinationPath (both remote paths). If they are in the same folder with a different name, it is equivalent to rename.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
sourcePath | expression | Source remote path. |
destinationPath | expression | Destination remote route. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
session | session | SFTP Connect session. Within a body it is inherited. |
Example
Section titled “Example”Archive on server after download:
SFTP Download remotePath = "/salida/datos.csv" localPath = "C:/descargas/datos.csv"SFTP Move / Rename sourcePath = "/salida/datos.csv" destinationPath = "/salida/procesados/datos.csv"Related activities
Section titled “Related activities”- SFTP Delete — delete instead of archive.
- SFTP Create Directory — create the destination folder.