On repeated imports into the same sheet, most formatting is preserved (e.g. colors) but some is not (e.g. setting a column to % format). How can I preserve all formatting already in the sheet prior to repeated csv imports, e.g. a script as follows that repeatedly updates the sheet (where "file" is a csv file on a Google Drive):
var content = file.getBlob().getDataAsString(); # csv file on a Google Drive
var csvData = Utilities.parseCsv(content);
current_sheet.clearContents();
current_sheet.getRange(1, 1, csvData.length, csvData[0].length).setValues(csvData);