How to compress files in google drive?
问题 Is there any way to compress large files into smaller .zip of .tar.gz files in google drive? I tried google appscript but it created .zip files but not compressing. How to do this? 回答1: I have tried and tested the below code with a pdf file which is in my Drive of 10MB size and it did compressed it for 9MB. I even tested for a Drive file(slides), it did compress it. function fileZip(){ var files = DriveApp.getFilesByName('Google_Apps_Script_Second_Edition.pdf'); while (files.hasNext()) { var