Learn R Programming

datamart (version 0.5.2)

SftpLocation-class: SFTP location

Description

This class represents a directory on a remote server that is accessed via the SFTP protocol. The only SSH authentication currently supported the public RSA key method.

The sftpdir function creates a SftpLocation object.

Usage

sftpdir(uri, pubkey, privatekey, keypasswd = "", clss = "SftpLocation")

Arguments

uri
character, the address of the remote host in the form sftp://username@the.host.com:port/remote/dir/
pubkey
character, pointing to the public key file. Required.
privatekey
character, pointing to the private key file. Required.
keypasswd
character, optional key password
clss
character, optional class name. Default is "SftpLocation".

Details

The show and as.character methods for this class have been adapted to reveal the URL of the directory it represents.

The meta method returns a data.frame with filenames and an is.dir attribute. It currently returns wrong values when the remote directory contains files with spaces in their file name.

See Also

sftpdir

Examples

Run this code
getSlots("SftpLocation")

Run the code above in your browser using DataLab