upload_zip: Zip up a directory and upload the zip to the OSF (both new and revised)
Description
Zip up a directory and upload the zip to the OSF (both new and revised)
Usage
upload_zip(id, path, dest = NULL)
Arguments
id
OSF id (osf.io/XXXX) to upload to. Specify project to upload new file,
specify a file to upload a revision.
path
Path to directory on local machine to zip up and upload.
dest
Name of the destination file on OSF (if NULL, basename(path) with a '.zip' suffix will be used). Note that this can be used to specify what folder to place files in, e.g. 'my_folder/my_directory.zip'. Also note that if id is a file ID, this is not necessary.