Argument extra_cols has been backported. See the original description in base::file.info.

file.info(..., extra_cols = TRUE)

Examples

# get function from namespace instead of possibly getting
# implementation shipped with recent R versions:
bp_file.info = getFromNamespace("file.info", "backports")

bp_file.info(file.path(R.home(), "COPYING"), extra_cols = FALSE)
#>                             size isdir mode               mtime
#> /opt/R/4.4.1/lib/R/COPYING 18011 FALSE  644 2024-08-22 01:58:33
#>                                          ctime               atime
#> /opt/R/4.4.1/lib/R/COPYING 2024-10-28 16:47:00 2025-05-30 15:13:43