adf.file.remove | R Documentation |
Remove a file from a virtual Amiga floppy disk represented by
an amigaDisk
object.
## S4 method for signature 'amigaDisk,character,logical'
adf.file.remove(x, file, full)
## S4 method for signature 'amigaDisk,character,missing'
adf.file.remove(x, file)
x |
An |
file |
A |
full |
A |
Remove a file from a virtual Amiga floppy disk (represented by an amigaDisk
object.
Make sure that the virtual disk is DOS formatted (see is.amigaDOS
). This method can only remove one file at
a time from a virtual virtual disk, it is not allowed to use wild cards in the source or destination names.
It is possible to remove an entire directory at once. Use loops to remove multiple files/directories from a virtual
disk.
Returns an amigaDisk
object where the
specified file
is removed.
Pepijn de Vries
## Not run:
## This removes a single file from a disk
resulting.disk <- adf.file.remove(adf.example, "df0:mods/mod.intro")
## This removes the entire 's' directory and cannot be undone:
resulting.disk <- adf.file.remove(adf.example, "df0:s", TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.