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

adf.file.exists

Test file or directory existsence in an amigaDisk object


Description

Tests whether a specific file (or directory) exists in an amigaDisk object.

Usage

## S4 method for signature 'amigaDisk,character'
adf.file.exists(x, file)

Arguments

x

An amigaDisk object in which this method will check for the file's existence.

file

A character string representing a file or directory name. Use Amiga specifications for file name (see current.adf.dir).

Details

This method will look for a file/directory header, based on its name. If such a header exists, it is assumed that the file exists. The file/directory itself is not checked for validity.

Value

Returns a logical value indicating whether the file exists or not.

Author(s)

Pepijn de Vries

Examples

data(adf.example)

## This file exists:
adf.file.exists(adf.example, "df0:mods/mod.intro")

## This file doesn't:
adf.file.exists(adf.example, "df0:idontexist")

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.