std.file
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Wed Apr 11 07:15:49 PDT 2012
On 4/11/12 9:07 AM, Russel Winder wrote:
> I am hoping I am failing to see the entry in the documentation due to...
>
> Python, Java and Groovy (at least, probably other languages) have
> functions for iterating over directory hierarchies, i.e. tree walkers /
> visitors. For example in Python:
>
> for root , directories , files in os.walk ( '.' ) :
> doStuff ( files )
>
> I can see in std.file the tools needed to do this by hand, but I would
> have thought in this day and age such a function should be in the
> standard library. Thus I am hoping I am just missing it...
http://dlang.org/phobos/std_file.html#dirEntries
Andrei
More information about the Digitalmars-d
mailing list