Activities
latest
false
Productivity Activities
Last updated Jul 1, 2024

CopyFile

Copies a file on a specified Google Drive location.

Namespace: UiPath.Gsuite.Activities.API

Assembly: UiPath.Gsuite.Activities.API (in UiPath.Gsuite.Activities.API.dll)

Syntax

public IFile CopyFile(
	IFile file,
	IFolder destination,
	string newFileName = null,
	ConflictBehavior conflictBehavior = ConflictBehavior.AddSeparate
)public IFile CopyFile(
	IFile file,
	IFolder destination,
	string newFileName = null,
	ConflictBehavior conflictBehavior = ConflictBehavior.AddSeparate
)

Parameters

file IFile
The file to copy.
destination IFolder
The Google Drive location where to copy the file.
newName String (Optional)
The name given to the copied file. If left blank, the copy will retain the original name.
conflictBehavior ConflictBehavior (Optional)
What is the expected behavior when a file with the same name already exists in the destination folder.

Return value

IFile - The copied file.
  • Syntax
  • Parameters
  • Return value

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.