TransferManager.CopyDirectoryAsync Method (CloudBlobDirectory, CloudFileDirectory, Boolean, CopyDirectoryOptions, DirectoryTransferContext, CancellationToken)
Updated: January 5, 2017
Copy an Azure blob directory to an Azure file directory.
Assembly: Microsoft.WindowsAzure.Storage.DataMovement (in Microsoft.WindowsAzure.Storage.DataMovement.dll)
public static Task<TransferStatus> CopyDirectoryAsync( CloudBlobDirectory sourceBlobDir, CloudFileDirectory destFileDir, bool isServiceCopy, CopyDirectoryOptions options, DirectoryTransferContext context, CancellationToken cancellationToken )
Parameters
- sourceBlobDir
-
Type:
Microsoft.WindowsAzure.Storage.Blob.CloudBlobDirectory
The CloudBlobDirectory that is the source Azure blob directory.
- destFileDir
-
Type:
Microsoft.WindowsAzure.Storage.File.CloudFileDirectory
The CloudFileDirectory that is the destination Azure file directory.
- isServiceCopy
-
Type:
System.Boolean
A 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.
- options
-
Type:
Microsoft.WindowsAzure.Storage.DataMovement.CopyDirectoryOptions
A CopyDirectoryOptions object that specifies additional options for the operation.
- context
-
Type:
Microsoft.WindowsAzure.Storage.DataMovement.DirectoryTransferContext
A DirectoryTransferContext object that represents the context for the current operation.
- cancellationToken
-
Type:
System.Threading.CancellationToken
A CancellationToken object to observe while waiting for a task to complete.
Return Value
Type: System.Threading.Tasks.Task<TransferStatus>A Task<TResult> object of type TransferStatus that represents the asynchronous operation.