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
operations
Type: Microsoft.Azure.Management.DataLake.StoreFileSystem.IFileSystemOperationsReference to the Microsoft.Azure.Management.DataLake.StoreFileSystem.IFileSystemOperations.
sourcePath
Type: System.StringRequired. The path to the directory to move/rename.
accountName
Type: System.StringRequired. The name of the account to use
destinationPath
Type: System.StringRequired. 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