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
System.String

Source path name

destination
System.String

Destination path

overwrite
System.Boolean

True if we want to overwrite the destination file

cancelToken
System.Threading.CancellationToken

Cancellation token

Returns

System.Boolean

Applies to