How to copy a file into a specific folder using DocsList?

前端 未结 4 1648
萌比男神i
萌比男神i 2020-12-22 04:47

I am trying this code to copy a Google spreadsheet into a specific folder

var targetFolder = DocsList.createFolder(\"Testing\");
var mainDocBlob = DocsList.g         


        
4条回答
  •  有刺的猬
    2020-12-22 05:27

    The DriveApp Service was updated August 20, 2013, with new methods File.makeCopy(destination) and File.makeCopy(name, destination), which allow scripts to specify a folder to which a file should be copied.

提交回复
热议问题