code: def parse(self, resource=None):
          
          if resource is None:
              resource = self.__resources__
  
          self.inventory = self.dispatcher.collection
  
          try:
              self._parse(resource)
          except MyCapytain.errors.UndispatchedTextError as E:
              if self.RAISE_ON_UNDISPATCHED is True:
                  raise UndispatchedTextError(E)
  
          self.inventory = self.dispatcher.collection
          return self.inventory
docs: Parse a list of directories ans
  
          :param resource: List of folders