Utility function to extract information about files on the user's file systems.
file.info(…, extra_cols = TRUE)<p></p><p>file.mode(…)
file.mtime(…)
file.size(…)</p>
| Parameter | Description |
|---|---|
… |
character vectors containing file paths. Tilde-expansion is done: see path.expand. |
extra_cols |
Logical: return all cols rather than just the first six. |
# NOT RUN {
ncol(finf <- file.info(dir())) # at least six
# }
# NOT RUN {
finf # the whole list
# }
# NOT RUN {
## Those that are more than 100 days old :
finf <- file.info(dir(), extra_cols = FALSE)
finf[difftime(Sys.time(), finf[,"mtime"], units = "days") > 100 , 1:4]
file.info("no-such-file-exists")
# }