public function renameRemoteFile($from, $to)
    {
        if(@ssh2_sftp_rename($this->sftp, $from, $to)){
            throw new \Exception("Could not rename file from $from to $to");
        }

        return true;
    }
public function renameRemoteFile($from, $to)
    {
        if(@ssh2_sftp_rename($this->sftp, $from, $to)){
            throw new \Exception("Could not rename file from $from to $to");
        }

        return true;
    }
public function renameRemoteFile ( $ from , $ to ) { if ( @ ssh2_sftp_rename ( $ this -> sftp , $ from , $ to ) ) { throw new \ Exception ( "Could not rename file from $from to $to" ) ; } return true ; }
Renames remote files
@param string $from The old path/file name
@param string $to The new path/file name
Renames remote files