SFTP Object
 
Syntax
 
SFTP.RenameFileOrDir(oldPath As String, newPath As String) As Long
 
Description
Renames a file or directory on the SFTP server. This is the equivalent of moving a file. To move a file from one directory to another, call this method where oldPath is the path of the existing file, and newPath is the path where the file is to be moved. For example, rename a file from "someDirA/filename" to "someDirB/abc/xyz/filename".
 
Returns 1 for success, 0 for failure.
 
See Also