ftp-url: Base url to FTP based on the environment variables

Description Usage Arguments Details

Description

FTP(s) path is created for specified storage and environment variables

Gets full URL to the FTP object

Recursively scans given FTP folder for files that match specified regex pattern

Usage

1
2
3
4
5
ftpBaseUrl(storage = "ftps")

ftpFullUrl(path)

ftpListFiles(path, pattern, verbose = FALSE, level = 0)

Arguments

storage

- defines whether files will be read from FTP or FTPS. Defaults to 'ftps'.

path

relative or full path to the FTP object or folder

pattern

regex pattern for file name filter

verbose

defines whether FTP curl feedback will be printed

level

internal parameter to track subfolder levels

Details

Environment variables required for FTP(S) access: * 'FTP_USER' - User name * 'FTP_PASSWORD' = Password * 'FTP_HOST' = FTP server IP or domain * 'FTP_PORT' = FTP port, defaults to 21


byapparov/rftp documentation built on May 7, 2019, 10:56 a.m.