code: def rmdir(self, paths):
          ''' Delete a directory
  
          :param paths: Paths to delete
          :type paths: list
          :returns: a generator that yields dictionaries
  
          .. note: directories have to be empty.
          '''
          if not isinstance(paths, list):
              raise InvalidInputException("Paths should be a list")
          if not paths:
              raise InvalidInputException("rmdir: no path given")
  
          processor = lambda path, node: self._handle_rmdir(path, node)
          for item in self._find_items(paths, processor, include_toplevel=True):
              if item:
                  yield itef rmdir(self, paths):
          ''' Delete a directory
  
          :param paths: Paths to delete
          :type paths: list
          :returns: a generator that yields dictionaries
  
          .. note: directories have to be empty.
          '''
          if not isinstance(paths, list):
              raise InvalidInputException("Paths should be a list")
          if not paths:
              raise InvalidInputException("rmdir: no path given")
  
          processor = lambda path, node: self._handle_rmdir(path, node)
          for item in self._find_items(paths, processor, include_toplevel=True):
              if item:
                  yield item
docs: Delete a directory
  
          :param paths: Paths to delete
          :type paths: list
          :returns: a generator that yields dictionaries
  
          .. note: directories have to be empty.