Я пытаюсь загрузить содержимое диска Google на листы без последнего измененного столбца.
function myFunction() {
var foldername = 'Folder Name';
var folderlisting = 'listing of folder ' + foldername;
var folders = DriveApp.getFoldersByName(foldername)
var folder = folders.next();
var contents = folder.getFiles();
var contents = folder.getFiles();
var ss = SpreadsheetApp.create(folderlisting);
var sheet = ss.getActiveSheet(); sheet.appendRow(['name','link','Owner','Modified']);
var file;
var name;
var link;
var Owner;
var Modified;
var row;
while(contents.hasNext()){
file = contents.next();
name = file.getName();
link = file.getUrl();
Owner = file.getOwner();
Modified = file.getModified();
sheet.appendRow([name, link,Owner,Modified]);
} };