Glob expansion is performed using a system call.

expand_inputs(raw_inputs, check_exists = TRUE)

Arguments

raw_inputs

a list of file path globs

check_exists

should we throw and error if a specified file does not exist, or if a glob returns no matches?

Value

a list of filenames

Details

Date range expansion is performed by including a date range in square brackets, e.g. results_[201201:201203].nc, or results[195004:200904:12], where the third value indicates the number of months between successive dates in the range.

The list of filenames may contain duplicates.

If any supplied filename, date range, or glob does not match an existing file, this function will throw an error, unless check_exists is set to FALSE.