def _init_from_directory(self, path: Text) -> None:
    for (parent, _, files) in os.walk(path, followlinks=True):
        for file in files:
            full_path = os.path.join(parent, file)
            if (not self.is_imported(full_path)):
                continue
            if YAMLStoryReader.is_test_stories_file(full_path):
                self._e2e_story_paths.append(full_path)
            elif Domain.is_domain_file(full_path):
                self._domain_paths.append(full_path)
            elif rasa.shared.data.is_nlu_file(full_path):
                self._nlu_paths.append(full_path)
            elif YAMLStoryReader.is_stories_file(full_path):
                self._story_paths.append(full_path)
            elif rasa.shared.data.is_config_file(full_path):
                self._init_from_file(full_path)
def _init_from_directory(self, path: Text) -> None:
    for (parent, _, files) in os.walk(path, followlinks=True):
        for file in files:
            full_path = os.path.join(parent, file)
            if (not self.is_imported(full_path)):
                continue
            if YAMLStoryReader.is_test_stories_file(full_path):
                self._e2e_story_paths.append(full_path)
            elif Domain.is_domain_file(full_path):
                self._domain_paths.append(full_path)
            elif rasa.shared.data.is_nlu_file(full_path):
                self._nlu_paths.append(full_path)
            elif YAMLStoryReader.is_stories_file(full_path):
                self._story_paths.append(full_path)
            elif rasa.shared.data.is_config_file(full_path):
                self._init_from_file(full_path)