Why allChildrenMatching: does not match extension?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Why allChildrenMatching: does not match extension?

Stephane Ducasse-3
Why allChildrenMatching: does not match extension?


allChildrenMatching: aPattern
    "Return all the files and folders recursively nested in the
receiver and matching the pattern, aPattern"

    ^ self allChildren select: [ :each |  aPattern match: each basename ]

I would rename

allChildrenMatching: aPattern

into

allChildrenNameMatching: aPattern