TransferManager.CopyDirectoryAsync Method (CloudFileDirectory, CloudFileDirectory, Boolean)
Copy an Azure file directory to another Azure file directory.
Namespace: Microsoft.WindowsAzure.Storage.DataMovement
Assembly: Microsoft.WindowsAzure.Storage.DataMovement (in Microsoft.WindowsAzure.Storage.DataMovement.dll)
Syntax
public static Task CopyDirectoryAsync(
CloudFileDirectory sourceFileDir,
CloudFileDirectory destFileDir,
bool isServiceCopy
)
Parameters
sourceFileDir
Type: Microsoft.WindowsAzure.Storage.File.CloudFileDirectoryThe CloudFileDirectory that is the source Azure file directory.
destFileDir
Type: Microsoft.WindowsAzure.Storage.File.CloudFileDirectoryThe CloudFileDirectory that is the destination Azure file directory.
isServiceCopy
Type: System.BooleanA flag indicating whether the copy is service-side asynchronous copy or not. If this flag is set to true, service-side asychronous copy will be used; if this flag is set to false, file is downloaded from source first, then uploaded to destination.
Return Value
Type: System.Threading.Tasks.Task
A Task object that represents the asynchronous operation.
See Also
CopyDirectoryAsync Overload
TransferManager Class
Microsoft.WindowsAzure.Storage.DataMovement Namespace
Return to top