[Pharo-project] FileSystem question

Henrik Johansen henrik.s.johansen at veloxit.no
Fri Feb 12 10:51:53 EST 2010

Den 12.02.2010 16:18, skrev Stéphane Ducasse:
> I'm trying to move some of the examples of Coral from rio to filesystem and I get some questions.
> Are there some examples (not tests)?
> What is the difference between FSReference and FSPath?
> For example how can I print in the Transcript all the files in my current dir?
> Stef
> _____________________________________
There's probably an easier way, but:

(FSDiskFilesystem current childrenAt: FSDiskFilesystem current
workingDirectory) do:
    [:each | each printOn: Transcript cr ].
Transcript flush.

Speaking of current dir...
FSDiskFilesystem current workingDirectory isWorkingDirectory -> false,
at least on Windows :)


More information about the Pharo-dev mailing list