collate

Collate all files and folders from the given path whose name matches the given pattern. Folders will be traversed where recurse is enabled, and a set of matching names is returned as filepaths (including those folders which match the pattern.)

Note: Allocates memory for returned paths.

mstring[]
collate
(
cstring path
,
cstring pattern
,
bool recurse = false
)

Meta