list_adf_entries {adfExplorer} | R Documentation |
List entries in a directory of a virtual ADF device
Description
Get an overview of all entries (files and directories) in a specific directory.
Usage
list_adf_entries(x, path, recursive = FALSE, nested = FALSE, ...)
## S3 method for class 'adf_device'
list_adf_entries(x, path, recursive = FALSE, nested = FALSE, ...)
## S3 method for class 'virtual_path'
list_adf_entries(x, path, recursive = FALSE, nested = FALSE, ...)
## S3 method for class 'character'
list_adf_entries.adf_device(x, path, recursive = FALSE, nested = FALSE, ...)
## S3 method for class 'virtual_path'
list_adf_entries.adf_device(x, path, recursive = FALSE, ...)
Arguments
x |
Either an |
path |
The virtual path for which you wish to obtain a list
of entries (see also |
recursive |
A |
nested |
A |
... |
Ignored |
Value
A vector of virtual_path
class objects, or a nested list
in
case nested
is TRUE
.
Author(s)
Pepijn de Vries
Examples
## First setup a connection to a virtual device
adz_file <- system.file("example.adz", package = "adfExplorer")
my_device <- connect_adf(adz_file)
## List all entries in the disk's root:
list_adf_entries(my_device)
## List all entries on the disk:
list_adf_entries(my_device, recursive = TRUE)
close(my_device)