

def __eq__(self, other):
    if isinstance(self, File):
        if isinstance(other, File):
            return (self.fid == other.fid)
    elif isinstance(self, Directory):
        if isinstance(other, Directory):
            return (self.cid == other.cid)
    return False

dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py BaseFile.__eq__/original