SftpLocation-class: SFTP location

Description Usage Arguments Details See Also Examples

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

1
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

1
getSlots("SftpLocation")

datamart documentation built on May 2, 2019, 9:40 a.m.