

def move(self, entries, directory):
    '\n        Move one or more entries (file or directory) to the destination\n        directory\n\n        :param list entries: a list of source entries (:class:`.BaseFile`\n            object)\n        :param directory: destination directory\n        :return: whether the action is successful\n        :raise: :class:`.APIError` if something bad happened\n        '
    fcids = []
    for entry in entries:
        if isinstance(entry, File):
            fcid = entry.fid
        elif isinstance(entry, Directory):
            fcid = entry.cid
        else:
            raise APIError('Invalid BaseFile instance for an entry.')
        fcids.append(fcid)
    if (not isinstance(directory, Directory)):
        raise APIError('Invalid destination directory.')
    if self._req_files_move(directory.cid, fcids):
        for entry in entries:
            if isinstance(entry, File):
                fcid.cid = directory.cid
            entry.reload()
        return True
    else:
        raise APIError('Error moving entries.')

dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py API.move/VarMisuse@132/285 `entry`->`fcid`