I have a question about the behavior of two methods in Directory.
I get this from filesMatching:
st> var2 filesMatching: 'test*' do: [:file | ( file name) display.
st>                                          ', ' display.
st>                                          file printNl ] !
/Users/johnp/projects/smalltalk/gnu/test.st, a File
/Users/johnp/projects/smalltalk/gnu/testing, a Directory
/Users/johnp/projects/smalltalk/gnu/testing3, a Directory

and I get this from allFilesMatching:
var2 allFilesMatching: 'test*' do: [:file | (file name) display.
st>                                        ', ' display.
st>                                        file printNl] !
/Users/johnp/projects/smalltalk/gnu/test.st, a File
/Users/johnp/projects/smalltalk/gnu/testing3/testing3-file, a File
/Users/johnp/projects/smalltalk/gnu/testing3/testing3-file-2, a File

Shouldn't they produce the same objects? I mean either all files and directories or just files?



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

Reply via email to