def move(self, entries, directory):
        """
        Move one or more entries (file or directory) to the destination
        directory

        :param list entries: a list of source entries (:class:`.BaseFile`
            object)
        :param directory: destination directory
        :return: whether the action is successful
        :raise: :class:`.APIError` if something bad happened
        """
        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.')
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.' )
Move one or more entries (file or directory) to the destination
        directory

        :param list entries: a list of source entries (:class:`.BaseFile`
            object)
        :param directory: destination directory
        :return: whether the action is successful
        :raise: :class:`.APIError` if something bad happened