[squeak-dev] withAllFilesDo:andDirectoriesDo:

Bert Freudenberg bert at freudenbergs.de
Mon Oct 21 18:51:16 UTC 2013


(moving from newbies list)

On 2013-10-21, at 20:25, "David T. Lewis" <lewis at mail.msen.com> wrote:

> This may be closer to what you are looking for:
> 
>  FileDirectory default
>     withAllFilesDo: [:file | "Do something with the FileStream here"]
>     andDirectoriesDo: [:dir | "Do something with the FileDirectory here"].


Uh oh. So this actually opens all the files in all subdirectories? And doesn't close them? Don't we have something nicer?

- Bert -




More information about the Squeak-dev mailing list