LocalDirList: LidarIndexR - Retrieve a directory listing

LocalDirListR Documentation

LidarIndexR – Retrieve a directory listing

Description

Retrieve a directory listing from a local file system as either a simple list of file/folder names or a data frame with file/folder information.

Usage

LocalDirList(
  path,
  fileType = NULL,
  namesOnly = TRUE,
  directoryOnly = FALSE,
  ...
)

Arguments

path

Path for a folder. 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).

directoryOnly

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

...

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

Value

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

Examples

## Not run: 
DirList("vdelivery/Datasets/Staged/")

## End(Not run)

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