[Tutor] Question on Reading a Directory

P.T. Waugh MA ptwaugh at earthlink.net
Mon Oct 27 21:32:07 EST 2003


Hi all,

I'm a very new Python programmer, and I want to get all the filenames 
(Windows) into a list.  I have been unable to figure out how to do this and 
don't see any functions in the library to do it.

Your help is appreciated.

Also, just out of curiousity.... this is how I copy a file:

splash = select_splash()
win32file.CopyFile(splash, '..\\dlgsplash.bmp',0)

and I was just wondering, if I need to do it this way (as it seems 
un-portable).

Cheers,

Patrick






More information about the Tutor mailing list