DriveApp未定义

时间:2017-09-28 11:08:29

标签: google-apps-script

DriveApp未定义虽然我已经在页面中声明了脚本但仍然看到相同的内容。

    function moveFolderToFolder(sourceFolderId, targetFolderId) {
     var targetFolder = DriveApp.getFolderById(targetFolderId);
     var sourceFolder = DriveApp.getFolderById(sourceFolderId);
     var currentFolders = sourceFolder.getParents();
     while (currentFolders.hasNext()) {
       var currentFolder = currentFolders.next();
       currentFolder.removeFolder(sourceFolder);
     }
     targetFolder.addFolder(sourceFolder);
}

请帮我解决这个问题。

0 个答案:

没有答案