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

Vu *_*inh 1 google-apps-script google-drive-api

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

Roh*_*rma 8

var parentFolder=DriveApp.getFolderById(parentFolderId);
var newFolder=parentFolder.createFolder("My New Folder Name")
Run Code Online (Sandbox Code Playgroud)