Argument extra_cols has been backported.
See the original description in base::file.info.
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.5.1/lib/R/COPYING 18011 FALSE 644 2025-06-13 21:18:36
#> ctime atime
#> /opt/R/4.5.1/lib/R/COPYING 2026-02-18 15:18:38 2026-02-18 15:18:38