RenameFile
Rename a file in the remote SFTP Server.
Renaming Files
SFTP allows only a small subset of columns to be used in the EXEC query. These columns can typically be used with only = comparison. The available columns for RenameFile are RemoteFile and NewFileName.
For example:
EXECUTE RenameFile RemoteFile = '/home/test/CDataTest/SPTest/TestFile.txt', NewFileName = 'TestFileNew.txt'
Input
Name | Type | Required | Description |
RemoteFile | String | True | Specify the remote file path and name to be renamed. |
NewFileName | String | True | Specify the new name of the remote file. |
Result Set Columns
Name | Type | Description |
Success | String | This parameter sets whether the operation was successful or not. |