code: def edit(self, entry, name, mark=False):
          
          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 mark 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.')
docs: Edit an entry (file or directory)
  
          :param entry: :class:`.BaseFile` object
          :param str name: new name for the entry
          :param bool mark: whether to bookmark the entry