Skip to contents

Get a list of files in a specific directory on a virtual amigaDisk.

Usage

# S4 method for amigaDisk,missing
list.adf.files(x, path)

# S4 method for amigaDisk,character
list.adf.files(x, path)

Arguments

x

An amigaDisk object for which the files should be listed.

path

Specify the path on the amigaDisk object, conform Amiga specs, for which files should be listed. See current.adf.dir for details on these specs.

Value

Returns a vector of characters listing the files in the specified directory on the virtual disk.

Details

As an analogue of [base::list.files], this method list files in a specific directory. But in this case the files are located on a virtual floppy disk represented by the amigaDisk object. This works only for DOS-formatted (is.amigaDOS) virtual disks.

Author

Pepijn de Vries

Examples

data(adf.example)

## show all files in the root of the example
## disk file:
list.adf.files(adf.example)
#> [1] "Devs" "S"    "this" "mods"

## you can also list the files in a specified
## directory:
list.adf.files(adf.example, "DF0:mods")
#> [1] "mod.intro"

## For the same path, only now specified
## relatively to the current directory:
list.adf.files(adf.example, "mods")
#> [1] "mod.intro"