def save(self, text): self._create_dirs() text = Hook.enrich_text(text) with open(self._filesystem_path, "w") as fd: fd.write(text)