def load(self): self.content = load_file(self.path)
def split_file_content(self, filepath): raw_content = load_file(os.path.join(self.PATH, filepath)) raw_output, text_content = raw_content.split(self.SEPARATOR) text_content = text_content.strip() raw_output = self.split_raw_output(raw_output) return raw_output, text_content
def load_valid_files(self): for f in self.valid_files: self._raw_content += load_file(os.path.join(self.PATH, f))