FileSystemOperationsExtensions.RenameAsync Method (IFileSystemOperations, String, String, String)

 

Rename a directory or file.

Namespace:   Microsoft.Azure.Management.DataLake.StoreFileSystem
Assembly:  Microsoft.Azure.Management.DataLake.StoreFileSystem (in Microsoft.Azure.Management.DataLake.StoreFileSystem.dll)

Syntax

public static Task<FileOperationResultResponse> RenameAsync(
    this IFileSystemOperations operations,
    string sourcePath,
    string accountName,
    string destinationPath
)
public:
[ExtensionAttribute]
static Task<FileOperationResultResponse^>^ RenameAsync(
    IFileSystemOperations^ operations,
    String^ sourcePath,
    String^ accountName,
    String^ destinationPath
)
static member RenameAsync : 
        operations:IFileSystemOperations *
        sourcePath:string *
        accountName:string *
        destinationPath:string -> Task<FileOperationResultResponse>
<ExtensionAttribute>
Public Shared Function RenameAsync (
    operations As IFileSystemOperations,
    sourcePath As String,
    accountName As String,
    destinationPath As String
) As Task(Of FileOperationResultResponse)

Parameters

  • sourcePath
    Type: System.String

    Required. The path to the directory to move/rename.

  • accountName
    Type: System.String

    Required. The name of the account to use

  • destinationPath
    Type: System.String

    Required. The path to move/rename the file or folder to

Return Value

Type: System.Threading.Tasks.Task<FileOperationResultResponse>

The result of the request or operation.

See Also

FileSystemOperationsExtensions Class
Microsoft.Azure.Management.DataLake.StoreFileSystem Namespace

Return to top