def symlink(self, target_path, path):
        path = self._realpath(path)
        if (len(target_path) > 0) and (target_path[0] == '/'):
            # absolute symlink
            target_path = os.path.join(self.ROOT, target_path[1:])

        try:
            os.symlink(target_path, path)
        except __HOLE__ as e:
            return SFTPServer.convert_errno(e.errno)
        return SFTP_OK
dataset/ETHPy150Open unbit/sftpclone/sftpclone/t/stub_sftp.py/StubSFTPServer.symlink