My current code is: var fileNameSetA = 'someFile.jpg' I want to write the file directly to a sub-folder. gs code, but the file gets written to the main 'My Drive'. I can create a new file in my Google Drive from a Google Apps Script. If I can create a new file with Drive API, but then I need to use the DriveApp service to move the file I created with Drive API, to the folder I want it in, then using Drive API in that particular situation is pointless. If the simplest and easiest one to use will do everything I want, then I'll use that. But to decide which one to use, I need to know the capabilities and options of all of them. I don't want to use 2 or 3 of the services to get the job done. This question is about the Drive API Advanced Service. So, which one should you use? I don't know, it depends. Built in, but only creates a document file. DocumentApp - Shown as Document in the Main List.Drive API - Also shown as Drive in the Main List.DriveApp - Shown as Drive in the Main List.DocsList - Shown as DocsList in the Main List.There are four ways to create a new file:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |