[Tutor] Walking a directory

Arthur Wiebe artooro at gmail.com
Mon Jan 17 20:58:14 CET 2005


What I want to do is rather simple, but I cannot find any good
documentation for something like this.

The directory structure is sort of like this:
>Aircraft
>>A-10
+A-10cl-set.xml
+A-10fg-set.xml

For example Aircraft/A-10/A-10cl-set.xml

Now I want to loop though each aircrafts folder (such as A-10) and
find each *-set.xml file, get the aircraft part (such as A-10cl) and
add it to a list.

While this does seem simple, how is the question.

I know about the walk function, but cannot find any good examples for it.
-- 
<Arthur/>


More information about the Tutor mailing list