|
From: | Stephen |
Subject: | [Help-smalltalk] Directory enumeration |
Date: | Sat, 01 Dec 2007 12:20:20 +1300 |
User-agent: | Thunderbird 2.0.0.9 (Macintosh/20071031) |
I'm doing some Directory enumeration.The method "filesMatching: aPattern do: block" returns File objects including files and directories.
The method "allFilesMatching: aPattern do: aBlock" only returns File objects that are files. There are no directories in the enumeration.
The documentation doesn't say that the recursive method will only return files and not return directories. Is this a bug or is it just the documentation not up to date?
It would be great if in fact the recursive method returned files and directories.
Thanks Stephen
[Prev in Thread] | Current Thread | [Next in Thread] |