FtpClient.UpdateFileAsync(String, Byte[], 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.
Update file
public virtual System.Threading.Tasks.Task<Azure.Connectors.Sdk.Ftp.Models.BlobMetadata> UpdateFileAsync(string file, byte[] input, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateFileAsync : string * byte[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.Ftp.Models.BlobMetadata>
override this.UpdateFileAsync : string * byte[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.Ftp.Models.BlobMetadata>
Public Overridable Function UpdateFileAsync (file As String, input As Byte(), Optional cancellationToken As CancellationToken = Nothing) As Task(Of BlobMetadata)
Parameters
- file
- String
File
- input
- Byte[]
The request body.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The Update file response.
Remarks
This operation updates a file. If a file is being deleted/renamed on server right after it was updated, connector may return HTTP 404 error by it's design. Please use a delay for 1 minute before deleting or renaming recently updated file.