Explore Plans
Google Drive

Copy a file

This action will make a copy of a file you specify by its Drive link, with the name you choose, in the Google Drive folder you specify. Folders cannot be copied.

Developer info

API endpoint slug
google_drive.copy_file
Filter method
GoogleDrive.copyFile.skip(string?: reason)
Runtime method
runAction("google_drive.copy_file", {})

Action fields

File url Text input > Link

Label
Drive link of the file
Helper text
Paste a Drive or Docs link, or use a Drive link ingredient from a trigger
Slug
file_url
Required
true
Can have default value
true
Filter method
GoogleDrive.copyFile.setFileUrl(string: file_url)

New name Text input > File name

Label
Name of the copy
Helper text
Leave blank for "Copy of" and the original name
Slug
new_name
Required
false
Can have default value
true
Filter method
GoogleDrive.copyFile.setNewName(string: new_name)

Path Text input > Path to a folder

Label
Destination folder path
Helper text
Format: some/folder/path. Leave blank to keep the copy beside the original
Slug
path
Required
false
Can have default value
true
Filter method
GoogleDrive.copyFile.setPath(string: path)