def METHOD_NAME(self, name, value, date=None, directory=None):
    clean_filename = slugify(str(name))
    file_dir_path = self.make_final_path(date=date, directory=directory)
    file_path = os.path.join(file_dir_path, "%s.txt" % clean_filename)
    with open(file_path, "w") as fp:
        fp.write(str(value))
        return file_path