[Tutor] cd reader

Thomi Richards thomi@thomi.imail.net.nz
Sat Nov 23 18:43:01 2002


maybe...

to get a directory listing:

os.listdir(/some/directory/here')
returns a string of all filenames. you could do a recursive search
thing. but there is almost definitely a better way to do this. remember
that on linux you have to mount The cdrom first (in most cases, anyway),
whereas in windows you don't)

On 23 Nov 2002 16:10:27 -0700 Thus said Chris Avery
<purplebo@babylonia.flatirons.org>:

> Hello all,
> I need to write a program that'll read the contents of a CD and write
> the filenames to a file for printing.
> 
> Where should I start?
> 
> Thanks,
> Chris
> 
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor


-- 
The software required Win95 or better, so I installed Linux.
Thomi Richards,
thomi@imail.net.nz