The Directory class represents a file system directory.
Directory(path)
is.Directory(x)
# S4 method for character,Directory
coerce(from, to, strict=TRUE)
# S4 method for Directory,character
coerce(from, to, strict=TRUE)
The Directory
generator returns an object of class Directory
.
The is.Directory
method returns TRUE
if its
argument is an object of class Directory
.
character string specifying a directory
object of class Directory
object of class Directory
or character string specifying
pathname of directory
object of class Directory
or character string specifying
pathname of directory
logical scalar. If TRUE
, the returned object must be
strictly from the target class; otherwise, any simple extension of the
target class will be returned, without further change.
Although objects of the class can be created by a direct call to
new, the preferred method is to use the Directory
generator function.
path
:character string specifying a directory
signature(from = "Directory", to = "character")
:
Coerce an object of class Directory
to its character string
pathname equivalent.
signature(from = "character", to = "Directory")
:
Coerce a character string specifying directory pathname to an
equivalent object of class Directory
.
P. Roebuck paul_roebuck@comcast.net, James M. Melott jmmelott@mdanderson.org