list_url: List Files or Folders in a FTP Directory

View source: R/list_url.R

list_urlR Documentation

List Files or Folders in a FTP Directory

Description

List Files or Folders in a FTP Directory

Usage

list_url(
  url = ftp_path_cdc(),
  recursive = !is.na(max_depth),
  max_depth = NA,
  full_info = FALSE,
  full_names = FALSE,
  ...
)

Arguments

url

URL to FTP server, including "ftp://"

recursive

logical indicating whether to list files in all subdirectories (default: FALSE)

max_depth

maximum folder depth to consider when recursive = TRUE

full_info

if TRUE, not only the path and filename are returned but also the file properties. The default is FALSE.

full_names

if TRUE, the full URLs are returned, otherwise (the default) only the paths relative to url.

...

arguments passed to kwb.dwd:::try_to_get_url, such as n_trials, timeout, or sleep_time


KWB-R/kwb.dwd documentation built on Sept. 28, 2022, 6:03 p.m.