![]() And also, please set the destination folder ID to destinationFolderId. In your case, the top folder ID of They are in several folders, nested inside of one main folder. And please set the source folder ID to sourceFolderId. Please copy and paste the following script. In this sample script, Drive API v3 is used. By this, Drive API is automatically enabled at API console. Please enable Drive API at Advanced Google services. By this, the process cost can be reduced a little than that with the synchronous process.Ībout the method for installing the library, please check here. By using this library, the file copy can be done with the asynchronous process. ![]() In this answer, a Google Apps Script library is used. By this, the script editor of Google Apps Script is opened. ![]() ![]() In this case, if you are not logged in Google, the log in screen is opened. If you want to directly create it, please access to. So please create a project of Google Apps Script. Sample script of Web Apps is a Google Apps Script. Create new project of Google Apps Script. Copy the files to the specific folder in your Google Drive using the py method of Drive API with the batch request.Create the batch requests from the retrieved file IDs.Retrieve all file IDs from the specific source folder including the nested folders.The flow of this sample script is as follows. You want to achieve to copy the all files using a script.įor this, how about this answer? I think that your goal can be achieve using Google Apps Script. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |