Put a file on the SFTP server

sftpPutFile(
  sftpConnection,
  localFileName,
  remoteFileName = basename(localFileName)
)

Arguments

sftpConnection

An SftpConnection object as created by the sftpConnect function.

localFileName

The path to the local file to upload.

remoteFileName

The name the file should have on the server.