LocalDirListByType: LidarIndexR - Retrieve a directory listing

LocalDirListByTypeR Documentation

LidarIndexR – Retrieve a directory listing

Description

Retrieve a directory listing from a local file system as a simple list of file names.

Usage

LocalDirListByType(path, fileType, ...)

Arguments

path

Path 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.

...

Arguments passed to RCurl::getURL(). This is ignored if the path uses http or https schemes.

Details

DirListByType is an alias for DirList(path, fileType = fileType, namesOnly = TRUE, ...)

Value

A list of file names (invisible).

Examples

## Not run: 
DirListByType(paste0("ftp://rockyftp.cr.usgs.gov/vdelivery/Datasets/",
    "Staged/Elevation/LPC/Projects/AK_BrooksCamp_2012/laz/"),
    "\\.las|\\.laz")

## End(Not run)

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