>  ( File name: '/top' ) all namesDo: [ :e | ( File stripPathFrom: e ) ]
> 
> I think the more common use case is the latter.... Let me know what you
> think, I can either send over the patch as it exists now or I can change
> it so that allFilesMatching and companions work on names with the paths
> completely stripped off...

I agree that this is the common use case.  You can also change it to
prepend (?:^|/) to the regex; it's probably faster than stripping the path.

> If I expanded out to use stripPathFrom when selecting what to match, I
> would make sure to still return full relative path from filesMatching:

Of course.  The names passed to the block by #namesMatching:do: should
also not be affected.

> Sorry this was so long. Just trying to be complete.

No problem.

Paolo


_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to