filter
Restricts the contents of this collection to those files which match the given criteria. The filtered collection is live, so that it reflects any changes to this collection.
The given closure is passed the @{link File} as a parameter, and should return a boolean value. The closure should return true
to include the file in the result and false
to exclude the file from the result.
Return
The filtered collection.
Parameters
filter Closure
The closure to use to select the contents of the filtered collection.
Restricts the contents of this collection to those files which match the given criteria. The filtered collection is live, so that it reflects any changes to this collection.
Return
The filtered collection.
Parameters
filter Spec
The criteria to use to select the contents of the filtered collection.