[Tutor] cd reader
Magnus Lycka
magnus@thinkware.se
Sat Nov 23 19:11:02 2002
At 12:42 2002-11-24 +1300, Thomi Richards wrote:
>os.listdir(/some/directory/here')
>returns a string of all filenames. you could do a recursive search
>thing.
Have a look at os.path.walk() in the library reference for
walking down a directory hierarchy. It takes a while to
wrap your head around it, but it's very useful if you manage...
Of course, If it's a music CD there won't be any directory
hierarchy, and it should be trivial.
I just got home from a whisky tasting session, hope I mananged
to make sense...
Hick! :)
/Magnus
P.S. Laphroaig 10 y.o. cask strength, Lagavulin 16 y.o. and
Lagavulin 17 y.o. double matured, in case someone wondered...
In other words, pure Islay (we prefer that kind). Got to have
a few glasses of water now...
--
Magnus Lycka, Thinkware AB
Alvans vag 99, SE-907 50 UMEA, SWEDEN
phone: int+46 70 582 80 65, fax: int+46 70 612 80 65
http://www.thinkware.se/ mailto:magnus@thinkware.se