Skip to main content

Copy Drive folder

Copy a folder with all its files and subfolders into another folder.

Command in the Google Workspace toolkit · id ooa.google/drive_copy_folder · 7 inputs (1 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialYesGoogle OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
Folder IDStringNoFolder to copy; or give folder_path instead.
Destination IDStringNoFolder that receives the copy; next to the original when empty.
NameStringNoName of the copy; the original name when empty.
Endpoint addressStringNoReplaces https://*.googleapis.com for testing or a proxy; leave empty normally.
Folder pathStringNoPath of the folder to copy under My Drive, used instead of folder_id.
Destination pathStringNoPath of the folder that receives the copy under My Drive, used instead of destination_id.

Outputs​

OutputTypeWhat it is
folder_idStringId of the new folder.
file_countNumberNumber of files copied.