Issue 3411 in pharo: FileDIrectory - search methods - unnecessary code & unclear use of read only

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

Issue 3411 in pharo: FileDIrectory - search methods - unnecessary code & unclear use of read only

pharo
Status: New
Owner: ----

New issue 3411 by [hidden email]: FileDIrectory - search methods -  
unnecessary code & unclear use of read only
http://code.google.com/p/pharo/issues/detail?id=3411

In FileDirectory, category 'search', the method:

withAllFilesDo: fileStreamBlock andDirectoriesDo: directoryBlock

- has a line that I think does nothing:   directoryBlock value: dir.
- inexplicably makes reference to read only files for reasons that are not  
encapsulated in the method title, and which appear to be irrelevant to the  
purpose.  (Well,  I can't see the point!)

That method is called from the method:

filesContaining: searchString caseSensitive: aBoolean

- but that is apparently unused (there are no senders).