RenameFile Method
Change the name of RemoteFile to NewName .
Object Oriented Interface
public function doRenameFile($newname);
Procedural Interface
ipworksssh_sftp_do_renamefile($res, $newname);
Remarks
The name of remote file or folder specified by RemoteFile is changed to NewName. RemoteFile and NewName are either absolute paths on the server, or a path relative to RemotePath.
If there is no SSH session in place, one is automatically created by first.