-
-
Save Hamcha/7d8478528610b6520be030fc7399b8ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var folders = DriveApp.getFoldersByName("Università"); | |
var subfolder = null; | |
if (folders.hasNext()) { | |
var folder = folders.next(); | |
var subfolders = folder.getFoldersByName("Sbobine"); | |
if (subfolders.hasNext()) { | |
var folder = subfolders.next(); | |
var subsubfolders = folder.getFoldersByName("5o Anno"); | |
if (subsubfolders.hasNext()) { | |
var folder = subsubfolders.next(); | |
var materiafolder = folder.getFoldersByName(form.materia); | |
subfolder = materiafolder.hasNext() ? materiafolder.next() : folder.createFolder(form.materia); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment