adf.file.exists | R Documentation |
Tests whether a specific file (or directory) exists in an
amigaDisk
object.
## S4 method for signature 'amigaDisk,character'
adf.file.exists(x, file)
## S4 method for signature 'amigaDisk,character'
dir.exists.adf(x, path)
x |
An |
file |
A ( |
path |
file A ( |
This method will look for a file/directory header, based on its name. If such a header exists, it is assumed that the file exists. The file/directory itself is not checked for validity.
Returns a logical
value indicating whether the file exists
or not. In case of dir.exists.adf
the path needs to exist and it needs to be a directory in order
to return TRUE
.
Pepijn de Vries
data(adf.example)
## This file exists:
adf.file.exists(adf.example, "df0:mods/mod.intro")
## But it doesn't exist as a directory
dir.exists.adf(adf.example, "df0:mods/mod.intro")
## This file also doesn't:
adf.file.exists(adf.example, "df0:idontexist")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.