I have a Google Drive structure setup like this:
Client A
--Project 1
----Drafts
----Presentations
----Minutes
--Project 2
----Drafts
----Presentations
----Minutes
Client B
<and so on>
I want to write a script where I can pass in the ID of Project 1, and it will loop through each of the three subfolders and count the total number of files (ultimately I want to count the number of files updated over a date range, but baby steps!).
I've tried using the Class FolderIterator code, but that wants you to assign a group of folders to a variable "folders" (it showed var folders = DriveApp.getFolders();
and I tried var folders = DriveApp.getFolderById("<id of Project 1 here>");
but in my version that's just one folder, and it really needs the collection of folders). Is there a way to assign those three subfolders to that folders
variable if I have the ID of the parent folder? Or is there a better way to loop through the subfolders?