method

append_file_with_newline

append_file_with_newline(path, str, options = {})
private

Append string to a file with a newline if necessary