code: def rename(self, paths, dst):
          ''' Rename (move) path(s) to a destination
  
          :param paths: Source paths
          :type paths: list
          :param dst: destination
          :type dst: string
          :returns: a generator that yields dictionaries
          '''
          if not isinstance(paths, list):
              raise InvalidInputException("Paths should be a list")
          if not paths:
              raise InvalidInputException("rename: no path given")
          if not dst:
              raise InvalidInputException("rename: no destination given")
  
          processor = lambda path, node, dst=dst: self._handle_rename(path, node, dst)
          for item in self._find_items(paths, processor, include_toplevel=True):
              if item:
                  yield itef rename(self, paths, dst):
          ''' Rename (move) path(s) to a destination
  
          :param paths: Source paths
          :type paths: list
          :param dst: destination
          :type dst: string
          :returns: a generator that yields dictionaries
          '''
          if not isinstance(paths, list):
              raise InvalidInputException("Paths should be a list")
          if not paths:
              raise InvalidInputException("rename: no path given")
          if not dst:
              raise InvalidInputException("rename: no destination given")
  
          processor = lambda path, node, dst=dst: self._handle_rename(path, node, dst)
          for item in self._find_items(paths, processor, include_toplevel=True):
              if item:
                  yield item
docs: Rename (move) path(s) to a destination
  
          :param paths: Source paths
          :type paths: list
          :param dst: destination
          :type dst: string
          :returns: a generator that yields dictionaries