sftpDownload: sftpDownload

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

Description

Downloads a file from an ftp server.

Usage

1
sftpDownload(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 path to the SFTP-hosted file, including the file name itself.

localpath

The path to the target location on the local file system, including the file name.

Details

Downloads a file from an ftp server. Will overwrite an existing file at the specified 'localpath'.

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 sftpDirectoryExists sftpMakeDirectory sftpRemoveDirectory sftpDeleteFile

Examples

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

## End(Not run)

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