[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] (no subject)
From: |
J Pfersich |
Subject: |
[Help-smalltalk] (no subject) |
Date: |
Mon, 08 Jan 2007 23:03:09 -0700 |
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] (no subject),
J Pfersich <=