Skip to contents

download file from remote server via sftp

Usage

sftp_download(sftp_con, path = NULL, to = basename(path))

Arguments

sftp_con

sftp_connection created by sftp_connect()

path

remote file path

to

local target path

Examples

# sftp_download(sftp_con,
#   path=c('t1.txt', 't2.txt'),
#   to=c('path1.txt', 'path2.txt')