MockAdlsClient.RenameAsync(String, String, Boolean, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET