Convert file name of a path to end in /year=YYYY
Source: R/list-files.R
path_alter_filename_year_as_dir.RdTo follow the Parquet partitioning style ({input_path_dir}/year=####/).
Examples
fs::file_temp(pattern = "database2020-", ext = ".sas7bdat") |>
path_alter_filename_year_as_dir()
#> /tmp/RtmpPgLnQw/database/year=2020