def get_folder(self): path = os.path.join(settings.DATA_DIR, "datasets", self.text_id) if not os.path.exists(path): os.makedirs(path) return path