This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function copyDriveWithPermissions(){ | |
var originFolder = DriveApp.getFolderById("XXX-XXX"); | |
var destinationFolder = DriveApp.getFolderById("XXX-XXX"); | |
var currentFolder = destinationFolder; | |
var totalCount = traverseFolder(originFolder,0, currentFolder); | |
} | |
function traverseFolder(folder,total, currentFolder) { | |