sftpUpload: sftpUpload

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

Description

Uploads a file to an ftp server.

Usage

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

Arguments

host

The name of the remote sftp host.

username

The user name with which to log in to the remote sftp host.

password

The password with which to log in to the remote sftp host.

remotepath

The target path on the server, including the file name.

localpath

The path to the file on the local file system, including the name of the file itself.

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

Author(s)

Bruce Hoff <bruce.hoff@sagebase.org>

References

http://www.chiark.greenend.org.uk/~sgtatham/putty/

See Also

sftpUpload sftpDownload sftpMakeDirectory sftpRemoveDirectory sftpDeleteFile

Examples

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


## End(Not run)

Sage-Bionetworks/Rsftp documentation built on May 9, 2019, 12:11 p.m.