dir.create.adf | R Documentation |
Create a directory on a virtual Amiga floppy disk represented by
an amigaDisk
object.
## S4 method for signature 'amigaDisk,character,missing,missing'
dir.create.adf(x, path, date, comment)
## S4 method for signature 'amigaDisk,character,POSIXt,missing'
dir.create.adf(x, path, date, comment)
## S4 method for signature 'amigaDisk,character,POSIXt,character'
dir.create.adf(x, path, date, comment)
x |
An |
path |
Specify the directory that should be created on |
date |
A |
comment |
An optional |
Create a directory on a virtual Amiga floppy disk represented by
an amigaDisk
object. Make sure that the virtual disk
is DOS formatted.
Returns an amigaDisk
object on which the
directory is created.
Pepijn de Vries
## Not run:
## create a blank DOS disk:
blank.disk <- blank.amigaDOSDisk("blank", "DD", "FFS", TRUE, FALSE, FALSE)
## creating a new directory on the blank disk is easy:
blank.disk <- dir.create.adf(blank.disk, "new_dir")
## in the line above, the directory is placed in the
## current directory (the root in this case). Directories
## can also be created by specifying the full path:
blank.disk <- dir.create.adf(blank.disk, "DF0:new_dir/sub_dir")
## check whether we succeeded:
list.adf.files(blank.disk)
## we can even make it the current dir:
current.adf.dir(blank.disk) <- "DF0:new_dir/sub_dir"
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.