adf.file.remove {adfExplorer} | R Documentation |
Remove a file from an amigaDisk object
Description
Remove a file from a virtual Amiga floppy disk represented by
an amigaDisk
object.
Usage
## 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)
Arguments
x |
An |
file |
A |
full |
A |
Details
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.
Value
Returns an amigaDisk
object where the
specified file
is removed.
Author(s)
Pepijn de Vries
Examples
## 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)