function getFolderList() {
const folders = DriveApp.getFolders();
while (folders.hasNext()) {
let folder = folders.next();
folder = folder.getId()
if (folder != '123') {
const files = folder.getFiles();
Logger.log(folder.getName());
while (files.hasNext()) {
const file = files.next();
Logger.log(file.getName());
}
}
}
}
DriveApp.getFolders()
let files = DriveApp.getFiles()
while (files.hasNext()) {
const file = files.next()
Logger.log(file.getName())
}