title: How do I save a Blob[0] (.pdf file) to a specified folder
body: <p>I have been trying to create a script that willsave a .pdf file to a specific folder without much luck.
  The file always saves to My Drive root folder.  I have found a number of examples with similar subject and have tried all of them but none have worked.</p>
  
  <p>My last attempt produces an error message: 
  Cannot find function createFile in object FolderIterator. (line 43, file "Code")
  Below is the code I am using.</p>
  
  <pre><code> var range = PayoutSheet.getRange("O1:T1");
   var ID = "1YlcoW81mYPmbddpXGm1xcNhT5JHj2-ey";  // 
   var MogaData = "MOGA_data";  // tried using this var instead of what is in quotes below.  
   var driveFolder = DriveApp.getFoldersByName("MOGA_data");  // this is the folder I want to save to.
   var file = driveFolder.createFile(Blobs[0]);   //   this is line 43
   file.setName("MyFile");
  </code></pre>