

def edit(self, entry, name, mark=False):
    '\n        Edit an entry (file or directory)\n\n        :param entry: :class:`.BaseFile` object\n        :param str name: new name for the entry\n        :param bool mark: whether to bookmark the entry\n        '
    fcid = None
    if isinstance(entry, File):
        fcid = entry.fid
    elif isinstance(entry, Directory):
        fcid = entry.cid
    else:
        raise APIError('Invalid BaseFile instance for an entry.')
    is_mark = 0
    if (fcid is True):
        is_mark = 1
    if self._req_files_edit(fcid, name, is_mark):
        entry.reload()
        return True
    else:
        raise APIError('Error editing the entry.')

dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py API.edit/VarMisuse@75/175 `mark`->`fcid`