adf_file_exists | R Documentation |
Test if an entry (file or directory) exists on a virtual ADF device.
adf_file_exists()
is the equivalent of file.exists()
on a virtual ADF device.
adf_dir_exists()
is the equivalent of dir.exists()
on a virtual ADF device.
adf_file_exists(x, path, ...)
## S3 method for class 'adf_device'
adf_file_exists(x, path, ...)
## S3 method for class 'virtual_path'
adf_file_exists(x, path, ...)
adf_dir_exists(x, path, ...)
## S3 method for class 'adf_device'
adf_dir_exists(x, path, ...)
## S3 method for class 'virtual_path'
adf_dir_exists(x, path, ...)
x |
Either a virtual device or virtual path. |
path |
A |
... |
Ignored |
adf_file_exists()
returns TRUE
if the path exists on the virtual device, FALSE
otherwise.
adf_dir_exists()
returns TRUE
when the path exists and is a directory, FALSE
otherwise.
Pepijn de Vries
## First setup a connection to a virtual device
my_device <- demo_adf()
adf_file_exists(my_device, "s/startup-sequence")
adf_dir_exists(my_device, "s/startup-sequence")
close(my_device)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.