DirList_HTTP: LidarIndexR - Retrieve a directory listing from a remote...

DirList_httpR Documentation

LidarIndexR – Retrieve a directory listing from a remote http(s) host

Description

Retrieve a http or https directory listing from a remote host as either a simple list of file/folder names or a data frame with file/folder information.

Usage

DirList_http(
  URL,
  fileType = NULL,
  namesOnly = FALSE,
  excludeDirectories = TRUE,
  directoryOnly = FALSE
)

Arguments

URL

URL for a folder on a remote host. Trailing slash is optional.

fileType

Any valid string for the pattern parameter in grep(). "$" will be appended to the string to search for file/folder names ending with values in fileType.

namesOnly

Boolean indicating you want only file names (TRUE) or all directory information (FALSE).

excludeDirectories

Boolean indicating you want to exclude folders from the list of returned files/folders.

directoryOnly

Boolean indicating you only want folder names included in the list of returned files/folders.

Value

A list of file names or a data frame with file names and attribute information. The return value depends on namesOnly.

Examples

## Not run: 
DirList_http(pasteo("https://rockyweb.usgs.gov/vdelivery/Datasets/Staged/",
  "Elevation/LPC/Projects/AK_BrooksCamp_2012/laz/"))

## End(Not run)

bmcgaughey1/LidarIndexR documentation built on April 14, 2025, 6:07 p.m.