adf_directory | R Documentation |
adf_directory()
shows the current directory of a virtual device, when a file
system is present. When connecting to or creating a new device, the current
directory is the disk's root by default. To change the current directory,
use adf_directory()
in combination with the assign operator (<-
).
adf_directory(dev, ...)
## S3 method for class 'adf_device'
adf_directory(dev, ...)
adf_directory(dev, ...) <- value
## S3 replacement method for class 'adf_device'
adf_directory(dev, ...) <- value
## S3 replacement method for class 'adf_device.character'
adf_directory(dev, ...) <- value
## S3 replacement method for class 'adf_device.virtual_path'
adf_directory(dev, ...) <- value
make_adf_dir(x, path, ...)
## S3 method for class 'adf_device'
make_adf_dir(x, path, ...)
## S3 method for class 'virtual_path'
make_adf_dir(x, path, ...)
## S3 method for class 'character'
make_adf_dir.adf_device(x, path, ...)
## S3 method for class 'virtual_path'
make_adf_dir.adf_device(x, path, ...)
dev |
The virtual adf device for which information needs to be obtained.
It should be of class |
... |
Ignored |
value |
A |
x |
An |
path |
A |
To create a new directory on a device use make_adf_dir()
and use a full or
relative path name to specify the new directory name.
See vignette("virtual_paths")
for a note on file and directory names on the Amiga.
make_adf_dir()
returns the device connection. adf_directory()
returns
the current directory as a virtual_path
class object.
Pepijn de Vries
## Open virtual device to demonstrate methods
my_device <- demo_adf(write_protected = FALSE)
## Show the current directory
adf_directory(my_device)
## Create a new directory
make_adf_dir(my_device, "DF0:s/newdir")
## Change the current dir to the new directory:
adf_directory(my_device) <- "DF0:s/newdir"
## Close the virtual device
close(my_device)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.