DavItem.CopyToAsync Method

Namespace:
Weavy.Web.WebDAV
Assembly:
Weavy.Web.dll

CopyToAsync(IItemCollectionAsync, string, bool, MultistatusException)

Creates a copy of this item with a new name in the destination folder.

If error occurred while copying file located in a subtree, the server should try to continue copy operation and copy all other items. In this case you must add that error multistatus container.

A CopyTo method invocation must not copy any locks active on the source item. However, if this method copies the item into a folder that has a deep lock, then the destination item must be added to the lock.

public abstract Task CopyToAsync(IItemCollectionAsync destFolder, string destName, bool deep, MultistatusException multistatus)

Parameters

destFolder
ITHit.WebDAV.Server.IItemCollectionAsync

Destination folder.

destName
string

Name of the destination item.

deep
bool

Indicates whether to copy entire subtree.

multistatus
ITHit.WebDAV.Server.MultistatusException

If some items fail to copy but operation in whole shall be continued, add information about the error into multistatus using ITHit.WebDAV.Server.MultistatusException.AddInnerException(System.String%2cITHit.WebDAV.Server.DavException).

Returns

System.Threading.Tasks.Task