public function ssh2SftpSymlink($orig_path, $symlink_path)
    {
        $result = @ssh2_sftp_symlink($this->sftp, $orig_path, $symlink_path);
        if(!$result){
            throw new \Exception("Could create symlink: ".$path);
        }
        return $result;
    }
public function ssh2SftpSymlink($orig_path, $symlink_path)
    {
        $result = @ssh2_sftp_symlink($this->sftp, $orig_path, $symlink_path);
        if(!$result){
            throw new \Exception("Could create symlink: ".$path);
        }
        return $result;
    }
public function ssh2SftpSymlink ( $ orig_path , $ symlink_path ) { $ result = @ ssh2_sftp_symlink ( $ this -> sftp , $ orig_path , $ symlink_path ) ; if ( ! $ result ) { throw new \ Exception ( "Could create symlink: " . $ path ) ; } return $ result ; }
Create a symlink on the remote system
@param string $orig_path The path to the original remote file
@param string $symlink_path The path to the symlink you want to create
@return boolean success or failure
Create a symlink on the remote system