ftp_list: List files on an FTP server

Description Usage Arguments Value Examples

View source: R/ftp_list.R

Description

List files on an FTP server

Usage

1
ftp_list(url, just_list = FALSE, messages = FALSE, ...)

Arguments

url

(character) URL for the FTP server

just_list

(logical) list files only? Default: FALSE

messages

(logical) verbose messages. Default: FALSE

...

further args passed on to curl

Value

a tibble (i.e., a data.frame)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
ftp_list("ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/")

# just list files
ftp_list("ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/", TRUE)

# more examples
ftp_list("ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/by_year/")
ftp_list("ftp://ftp.ncdc.noaa.gov/pub/data/noaa/2014/")

## End(Not run)

sckott/ftp documentation built on Feb. 11, 2018, 8:36 p.m.