code: def dump_string_to_file(string, filepath):
      
      create_dirs(
          os.path.dirname(filepath)
      )
  
      with open(filepath, 'a') as outfile:
          outfile.write(string)
          outfile.write('\n')
docs: Dump @string as a line to @filepath.