Click or drag to resize

FilesUserRoutesCopyAsync Method (String, String, Boolean, Boolean, Boolean)

Note: This API is now obsolete.

Copy a file or folder to a different location in the user's Dropbox.

If the source path is a folder all its contents will be copied.

Namespace:  Dropbox.Api.Files.Routes
Assembly:  Dropbox.Api (in Dropbox.Api.dll) Version: 4.0
[ObsoleteAttribute("This function is deprecated, please use CopyAsync instead.")]
public Task<Metadata> CopyAsync(
	string fromPath,
	string toPath,
	bool allowSharedFolder = false,
	bool autorename = false,
	bool allowOwnershipTransfer = false


Type: SystemString
Path in the user's Dropbox to be copied or moved.
Type: SystemString
Path in the user's Dropbox that is the destination.
allowSharedFolder (Optional)
Type: SystemBoolean
If true, CopyAsync(RelocationArg) will copy contents in shared folder, otherwise RelocationErrorCantCopySharedFolder will be returned if fromPath contains shared folder. This field is always true for MoveAsync(RelocationArg).
autorename (Optional)
Type: SystemBoolean
If there's a conflict, have the Dropbox server try to autorename the file to avoid the conflict.
allowOwnershipTransfer (Optional)
Type: SystemBoolean
Allow moves by owner even if it would result in an ownership transfer for the content being moved. This does not apply to copies.

Return Value

Type: TaskMetadata
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server.
See Also