Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

adf.disk.name

Get or set the disk name of an amigaDisk object


Description

Get or set the disk name of an amigaDisk object.

Usage

## S4 method for signature 'amigaDisk'
adf.disk.name(x)

## S4 replacement method for signature 'amigaDisk,character'
adf.disk.name(x) <- value

Arguments

x

An amigaDisk object for which the disk name needs to be obtained or changed.

value

A character representation with which the disk's name needs to be replaced. Disk name needs to be between 1 and 30 characters long and are not allowed to contain a colon or forward slash.

Details

DOS-formatted disks (is.amigaDOS) store their disk name on the socalled root block of the disk. This method allows you to obtain the disk's name or change it (when it is DOS-formatted).

Value

Returns A character representation of the disk's name.

Author(s)

Pepijn de Vries

Examples

## Not run: 
data(adf.example)

## get the disk name:
adf.disk.name(adf.example)

## change it if you don't like it:
adf.disk.name(adf.example) <- "MyDisk"

## confirm that it has changed:
adf.disk.name(adf.example)

## End(Not run)

adfExplorer

Import from and Export to Amiga Disk Files

v0.1.4
GPL-3
Authors
Pepijn de Vries [aut, cre, dtc]
Initial release
2018-03-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.