This provides a different take on fs::dir_info()
, by default
returning only a (hopefully useful) subset of the information.
proj_dir_info(
path = ".",
tz = "UTC",
cols = c("path", "type", "size", "modification_time"),
...
)
character
path for directory listing.
character
Olson time-zone to use for datetimes;
specify NULL
to use system time-zone.
character
vector of column-names to return from
fs::dir_info()
; specify NULL
to return all columns.
additional arguments passed to fs::dir_info()
.
data.frame
with S3 classes "tbl_df"
and "tbl"
, aka a "tibble".
proj_dir_info()
#> # A tibble: 5 × 4
#> path type size modification_time
#> <fs::path> <fct> <fs::bytes> <dttm>
#> 1 Rplot001.png file 1011 2022-08-14 03:18:32
#> 2 index.html file 10.24K 2022-08-14 03:18:30
#> 3 proj_check_deps.html file 9.21K 2022-08-14 03:18:31
#> 4 proj_create.html file 9.49K 2022-08-14 03:18:32
#> 5 proj_create_dir_target.html file 7.99K 2022-08-14 03:18:32