dir.create.adf: Create a directory on an amigaDisk object

Description Usage Arguments Details Value Author(s) Examples

Description

Create a directory on a virtual Amiga floppy disk represented by an amigaDisk object.

Usage

1
2
3
4
5
6
7
8
## 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)

Arguments

x

An amigaDisk on which the directory should be created.

path

Specify the directory that should be created on x. You can specify the full path on the virtual disk conform Amiga DOS syntax (see current.adf.dir details). When no full path is specified the new directory will be created in the current directory. Note that wild cards are not allowed.

date

A POSIXt object that will be used as the directory modification date. When missing the system time will used.

comment

An optional character string that will be included in the directory header as a comment. Should not be longer than 79 characters.

Details

Create a directory on a virtual Amiga floppy disk represented by an amigaDisk object. Make sure that the virtual disk is DOS formatted.

Value

Returns an amigaDisk object on which the directory is created.

Author(s)

Pepijn de Vries

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## 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)

adfExplorer documentation built on Sept. 5, 2021, 5:11 p.m.