So I'd like to create and (publicly) share a new folder within an existing parent.
Eg: \September 2013\[new folder here]
Sure, you could:
- Use createFolder, to create a folder in root
- Use addToFolder, to copy newly created folder into a given parent
- Use removeFromFolder, to remove the folder from root
But then, publicly sharing that folder is not possible!
Indeed, if you try using: setSharing(DriveApp.Access.ANYONE, DriveApp.Permission.EDIT);
You will get: "TypeError: Cannot find function setSharing in object Folder."
That's right, the above DriveApp function seems to only work with folders made with DriveApp.createFolder.
And of course, there is no way to simply:
- Use DriveApp.createFolder, to create a folder in root
- Use setSharing, to publicly share the newly created folder
- Move the new folder to the desired sub-folder
... as there is no move method!
Has anyone found a solution to such a problem?