This overwrites the file if it exists. To append/edit a snippet, use snippet_add instead.
snippet_add
snippets_write(snippets, path)
named list of snippets
path to the file to write to