Members
(constant) credentials
Google Service Account credentials encoded in base64
(constant) folder
Google Drive Folder ID to upload the file/folder to
(constant) link
Link to the Drive folder
(constant) name
Optional name for the zipped file
(constant) target
Local path to the file/folder to upload
Methods
uploadToDrive()
Uploads the file to Google Drive
zipDirectory(source, out)
Zips a directory and stores it in memory
Parameters:
Name | Type | Description |
---|---|---|
source |
string | File or folder to be zipped |
out |
string | Name of the resulting zipped file |