def move(self, entries, directory):
        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):
                    entry.cid = directory.cid
                entry.reload()
            return True
        else:
            raise APIError('Error moving entries.')
Add a crumb to the breadcrumb list.
dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py/API.move--crossover with--dataset/ETHPy150Open django-erp/django-erp/djangoerp/core/templatetags/breadcrumbs.py/add_crumb