Share via


MockAdlsClient.RenameAsync(String, String, Boolean, CancellationToken) Method

Definition

Removes the source entry and add a new entry in the internal dictionary with the same metadata of the source entry

public override System.Threading.Tasks.Task<bool> RenameAsync (string path, string destination, bool overwrite = false, System.Threading.CancellationToken cancelToken = default);
override this.RenameAsync : string * string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overrides Function RenameAsync (path As String, destination As String, Optional overwrite As Boolean = false, Optional cancelToken As CancellationToken = Nothing) As Task(Of Boolean)

Parameters

path
String

Source path name

destination
String

Destination path

overwrite
Boolean

True if we want to overwrite the destination file

cancelToken
CancellationToken

Cancellation token

Returns

Applies to