sftpUpload: sftpUpload

Description Usage Details Value Note Author(s) References See Also Examples

Description

Uploads a file to an ftp server.

Usage

1
sftpUpload(host, username, password, remotepath, localpath)

Details

Uploads a file to an ftp server. Will overwrite an existing file at the specified 'remotepath'.

Value

logical: returns TRUE if successful, FALSE otherwise

Note

The underlying C code supports public key authentication but this version of Rssh2 supports only username+password authentication.

Author(s)

Bruce Hoff <bruce.hoff@sagebase.org>

References

www.libssh2.org

See Also

sftpDownload

Examples

1
2
3
4
5
## Not run: 
sftpUpload("sftp.server.org", "username", "password", "/path/to/dest/remotefile.txt", "/source/location/localfile.txt")


## End(Not run)

brucehoff/Rssh2 documentation built on May 13, 2019, 7:54 a.m.