def getdir(self, inode):
        ans = self.sendAndReceive(CLTOMA_FUSE_GETDIR, inode,
                                  self.uid, self.gid)
        p = 0
        names = {}
        while p < len(ans):
            length, = unpack("B", ans[p:p + 1])
            p += 1
            if length + p + 5 > len(ans):
                break
            name = ans[p:p + length]
            p += length
            inode, type = unpack("IB", ans)
            names[name] = (inode, type)
            p += 5
        return names
return: {name: (inode,type)}
dataset/ETHPy150Open douban/dpark/dpark/moosefs/master.py/MasterConn.getdir