Share via


MockAdlsClient.Rename(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 bool Rename (string path, string destination, bool overwrite = false, System.Threading.CancellationToken cancelToken = default);
override this.Rename : string * string * bool * System.Threading.CancellationToken -> bool
Public Overrides Function Rename (path As String, destination As String, Optional overwrite As Boolean = false, Optional cancelToken As CancellationToken = Nothing) As 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