Global

Members

(constant) credentials

Google Service Account credentials encoded in base64
Source:

(constant) folder

Google Drive Folder ID to upload the file/folder to
Source:
Link to the Drive folder
Source:

(constant) name

Optional name for the zipped file
Source:

(constant) target

Local path to the file/folder to upload
Source:

Methods

uploadToDrive()

Uploads the file to Google Drive
Source:

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
Source: