Wrap files in functions
issue #22534: Add filtering api to list.