4/17/2023 0 Comments Google drive api batchThese are the sample scripts of the batch requests for Drive API using Google Apps Script. #tried both the query and str(dFiles) as arg but no luck. Batch Requests for Drive API using Google Apps Script. Query = query #to remove the finished ',' in the string If the commit operation fails, you can safely retry the. Query +=i+", " #will show in this format "id1, id2." The Storage Write API lets you batch-process an arbitrarily large number of records and commit them in a single atomic operation. #will return a list of all the files in the folderĬhildren = service.files().list(q="'"+dir_id+"' in parents").execute()ĭFiles.append(i) # will show as array of id's (a snippet below) dir_id = "my folder Id" I tried grabbing the files I want from the drive and organize their Id's but no luck there. I'm developing a python script that will upload files to a specific folder in my drive, as I come to notice, the drive api provides an excellent implementation for that, but I did encountered one problem, how do I delete multiple files at once?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |