Directories

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Directories

Chris Double-2
I need to scan through files in a directory using Dolphin Smalltalk
4. I couldn't find anything in the image that seemed to do it - does
anyone have any pointers to code that does this sort of thing?

Chris.


Reply | Threaded
Open this post in threaded view
|

Re: Directories

Ian Bartholomew
Chris,

"Chris Double" <[hidden email]> wrote in message
news:[hidden email]...
> I need to scan through files in a directory using Dolphin Smalltalk
> 4. I couldn't find anything in the image that seemed to do it - does
> anyone have any pointers to code that does this sort of thing?

Try :-

File class>>do:
File class>>for:inAndBelow:do:
File class>>forDirectoriesIn:do:

For a slightly more up to date solution you can use the IFileSystem class
(Active/X scripting control), but that is a little more complicated to use
and probably not worth it if you just want to scan through some folders.

Ian


Reply | Threaded
Open this post in threaded view
|

Re: Directories

Chris Double-2
"Ian Bartholomew" <[hidden email]> writes:

> Try :-
>
> File class>>do:
> File class>>for:inAndBelow:do:
> File class>>forDirectoriesIn:do:

Thanks, I should have looked harder!

Cheers,
Chris.