使用Google App脚本在云端硬盘中创建新文件夹

问题描述:

有没有一种方法可以创建Google应用程序脚本,以在不在根文件夹中的Google云端硬盘中创建一个新文件夹?将根目录中的文件夹移动到特定文件夹的脚本也可以.

Is there a way to create a google app script to create a new folder in Google Drive that is NOT IN THE ROOT FOLDER? A script to move a folder in the root to a particular folder will also do.

var parentFolder=DriveApp.getFolderById(parentFolderId);
var newFolder=parentFolder.createFolder("My New Folder Name")