upload_to_g_drive: Upload files to Google Drive

upload_to_g_driveR Documentation

Upload files to Google Drive

Description

Uploads one or more files to Google Drive.

Usage

upload_to_g_drive(
  filepaths,
  g_drive_folder,
  path_gcp_service_account_key = Sys.getenv("PATH_GCP_KEY_ZDA"),
  quiet = FALSE
)

Arguments

filepaths

Local path(s) to the file(s) to be uploaded.

g_drive_folder

Destination path on Google Drive where the files are to be uploaded to.

path_gcp_service_account_key

Path to the GCP Service Account Key JSON file. See auth_g_drive_gcp() for details.

quiet

Whether or not to suppress printing status output from googledrive operations.

Details

Essentially a convenience wrapper around googledrive::drive_put().

Value

filepaths, invisibly.

See Also

Other Google Apps functions: auth_g_drive_gcp(), auth_g_sheets_gcp(), backup_g_file(), backup_g_sheet(), g_file_mod_time()


zdaarau/fokus documentation built on Dec. 24, 2024, 10:47 p.m.