View source: R/01genericSupport.r
adf.file.info | R Documentation |
Obtain file information of file from a virtual amigaDisk
object.
## S4 method for signature 'amigaDisk,character'
adf.file.info(x, path)
## S4 method for signature 'amigaDisk,character'
adf.file.mode(x, path)
## S4 replacement method for signature 'amigaDisk,character,character'
adf.file.mode(x, path) <- value
## S4 replacement method for signature 'amigaDisk,character,logical'
adf.file.mode(x, path) <- value
## S4 method for signature 'amigaDisk,character,missing'
adf.file.time(x, path, which)
## S4 method for signature 'amigaDisk,character,character'
adf.file.time(x, path, which = c("m", "c", "a"))
## S4 replacement method for signature 'amigaDisk,character,missing,POSIXt'
adf.file.time(x, path, which) <- value
## S4 replacement method for signature 'amigaDisk,character,character,POSIXt'
adf.file.time(x, path, which = c("m", "c", "a")) <- value
## S4 method for signature 'amigaDisk,character'
adf.file.size(x, path)
x |
An |
path |
A ( |
value |
In case of |
which |
Character indicating which time to obtain/modify. One of
|
Use adf.file.mode
to obtain or set a character
string reflecting which
file mode flags are set, where:
D
: deletable
E
: executable
W
: writeable
R
: readable
A
: archived
P
: pure command
S
: script
H
: hold
starting without lower case: applies to user
starting with lower case g
: applies to group
starting with lower case o
: applies to other
Use adf.file.time
to obtain or set the base::POSIXt properties of
a file on an amigaDisk
.
Use adf.file.info
to obtain a combination of the information
listed above in a data.frame
.
In case of the replace methods, an amigaDisk
class object is returned with the file
information updated. Otherwise, it will return the requested file information (see also details).
Pepijn de Vries
## Not run:
data(adf.example)
adf.file.mode(adf.example, c("mods", "mods/mod.intro"))
adf.file.time(adf.example, c("mods", "mods/mod.intro"))
adf.file.size(adf.example, c("mods", "mods/mod.intro"))
adf.file.info(adf.example, c("mods", "mods/mod.intro"))
## set the writeable flag for a group to TRUE
adf.file.mode(adf.example, "mods/mod.intro") <- c(gW = T)
## Set the modified time-stamp to the current system time
adf.file.time(adf.example, "mods/mod.intro") <- Sys.time()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.