help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Directory class


From: Robin Redeker
Subject: Re: [Help-smalltalk] Directory class
Date: Wed, 3 Oct 2007 11:24:26 +0200
User-agent: Mutt/1.5.11+cvs20060403

On Tue, Oct 02, 2007 at 10:25:34PM -0300, Cesar Rabak wrote:
> I'm trying to use Directory class, and all I got from the info page
> does not enlighten me enough to use it except as a singleton.
> 
> How do I create an instance of Directory so I can iterate the contents
> of it (using #contents)?

I recently used the Directory class too, this was what I discovered
about how to use it:

You create a new instance eg. with the #name: message, and iterate via
#contents or #do:

   (Directory name: '/tmp') do: [:file| file displayNl]


Robin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]