title: How to copy a file into a specific folder using DocsList?
body: <p>I am trying this code to copy a Google spreadsheet into a specific folder</p>
  
  <pre><code>var targetFolder = DocsList.createFolder("Testing");
  var mainDocBlob = DocsList.getFileById("docId").getBlob();
  var newMainDoc = targetFolder.createFile(mainDocBlob);
  </code></pre>
  
  <p>But the resulting file is a Pdf file instead of a spreadsheet as the source was.</p>
  
  <p>How to do this right using DocsList and always getting the same type of file as the source is.</p>
  
  <p>Thanks</p>