Method UploadFileAsync
UploadFileAsync(string, string, SftpTransferOptions?, CancellationToken)
Uploads the local file localPath to remotePath. With Preserve,
the remote file gets the local one's modification and access times, and its permissions where this system has Unix modes.
public Task<long> UploadFileAsync(string localPath, string remotePath, SftpTransferOptions? options = null, CancellationToken cancellationToken = default)
Parameters
localPathstringremotePathstringoptionsSftpTransferOptionscancellationTokenCancellationToken