Unitalk Drive icon

Unitalk Drive

Access data on Google Drive via Unitalk

Actions17

File → Copy

AI-generated

Summary

Copy a file in Google Drive, optionally renaming it and choosing its destination folder or drive.

Inputs

  • authentication — Select the authentication method: OAuth2 (recommended) or Service Account.
  • fileId (required) — Specify the file to copy by selecting from a list, providing a URL, or entering its file ID.
  • name — Set the name of the copied file; if unset, the default is “Copy of {original file name}.”
  • sameFolder — Choose whether to copy the file into the same folder as the original (default true).
  • driveId (required) — Specify the target drive to save the copied file; required if copying to a different folder (sameFolder is false).
  • folderId (required) — Specify the target folder to save the copied file; required if copying to a different folder (sameFolder is false).
  • options.copyRequiresWriterPermission — Set whether copy, print, or download options should be disabled for readers and commenters (default false).
  • options.description — Add a short description for the copied file.

Output shape

a single file record containing the metadata of the copied file

The output includes the new file's metadata as returned by the Google Drive API's copy method; the node respects the sameFolder flag to determine destination, else requires drive and folder specified.

Links

Discussion