DirList | R Documentation |
Retrieve a directory listing from a remote host as either a simple list of file/folder names or a data frame with file/folder information.
DirList(
URL,
fileType = NULL,
namesOnly = FALSE,
excludeDirectories = TRUE,
directoryOnly = FALSE,
dirFormat = "dir",
...
)
URL |
URL for a folder on a remote host. Trailing slash is optional. |
fileType |
Any valid string for the pattern parameter in |
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. |
dirFormat |
String indicating the expected directory format for the
|
... |
Arguments passed to |
A list of file names or a data frame with file names and attribute
information. The return value depends on namesOnly
.
## Not run:
DirList("ftp://rockyftp.cr.usgs.gov/vdelivery/Datasets/Staged/")
DirList(paste0("ftp://rockyftp.cr.usgs.gov/vdelivery/Datasets/",
"Staged/Elevation/LPC/Projects/AK_BrooksCamp_2012/laz/"),
"\\.las|\\.laz")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.