list_adf_entries | R Documentation |
Get an overview of all entries (files and directories) in a specific directory.
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, ...)
x |
Either an |
path |
The virtual path for which you wish to obtain a list
of entries (see also |
recursive |
A |
nested |
A |
... |
Ignored |
A vector of virtual_path
class objects, or a nested list
in
case nested
is TRUE
.
Pepijn de Vries
## First setup a connection to a virtual device
my_device <- demo_adf()
## List all entries in the disk's root:
list_adf_entries(my_device)
## List all entries on the disk as a vector of `virtual paths`:
list_adf_entries(my_device, recursive = TRUE)
## List all entries on the disk as a nested list:
list_adf_entries(my_device, recursive = TRUE, nested = TRUE)
close(my_device)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.