Skip to content

Instantly share code, notes, and snippets.

Created August 16, 2016 20:57
Show Gist options
  • Save anonymous/5213375345fe09aa19e1a72cb952be6c to your computer and use it in GitHub Desktop.
Save anonymous/5213375345fe09aa19e1a72cb952be6c to your computer and use it in GitHub Desktop.
var folders = DriveApp.getFoldersByName("Università");
var subfolder = null;
if (folders.hasNext()) {
var folder = folders.next();
var subfolders = folder.getFoldersByName(Sbobine);
var subfolder = null;
if (folders.hasNext()) {
var folder = folders.next();
var subfolders = folder.getFoldersByName(5o Anno);
var subfolder = null;
if (folders.hasNext()) {
var folder = folders.next();
var subfolders = folder.getFoldersByName(form.materia);
subfolder = subfolders.hasNext() ? subfolders.next() : folder.createFolder(form.materia);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment