Going through folders...

Mark McEahern marklists at mceahern.com
Mon Apr 15 19:36:59 EDT 2002


[FREDRIK HULDTGREN]
> I want to go through a catalogue structure and make a textfile 
> that lists the files in each catalogue/undercatalogue. I know 
> that there is a function for doing this somewhere, I just can't 
> remember what it is right now...
> all help is appreciated...

import os
os.listdir(r"c:\temp")

Cheers,

// mark





More information about the Python-list mailing list