title: Adding File to Folder in Google Drive Script
body: <p>Google finally shut of the Docslist class and my script stopped running this week. Here is what my code was.</p>
  
  <pre><code>  var folder = DocsList.getFolderById('XXXXXXXXX');
    var document = DocsList.getFileById(newSS.getId());
    document.addtoFolder(folder);
  </code></pre>
  
  <p>So I was trying to switch over the use DriveApp instead.  So here is the code that I have switched to. </p>
  
  <pre><code>  var folder = DriveApp.getFolderById('XXXXXXXXXX');
    var document = DriveApp.getFileById(newSS.getId());
    document.addFile(folder);
  </code></pre>
  
  <p>I'm getting an error "TypeError: Cannot find function addFile in object". I think I'm using the addFile wrong, but I'm not exactly sure what I'm doing wrong. Any help?</p>