def readlink(self, path):
        path = self._realpath(path)
        try:
            symlink = os.readlink(path)
        except __HOLE__ as e:
            return SFTPServer.convert_errno(e.errno)
        # if it's absolute, remove the root
        if os.path.isabs(symlink):
            if symlink[:len(self.ROOT)] == self.ROOT:
                symlink = symlink[len(self.ROOT):]
                if (len(symlink) == 0) or (symlink[0] != '/'):
                    symlink = '/' + symlink
            else:
                symlink = '<error>'
        return symlink
dataset/ETHPy150Open unbit/sftpclone/sftpclone/t/stub_sftp.py/StubSFTPServer.readlink