On 18 Sep 2006 17:09:22 -0700, citlaly <[EMAIL PROTECTED]> wrote: > Hi!! > I'm a beginner in python and I'm trying to use the files from a > "folder" as a list. What I want to do is read each one as a list, but > just the name of the file, the data inside doesn't matter. How can I do > it? I was trying using a list, but I don't know how "convert" the > elements (files) to a list that I can read and manipulate... > > Thanks in advance for your help!! > > Citlaly.... > > -- > http://mail.python.org/mailman/listinfo/python-list >
Look at the docs for os.path.walk, os.walk, and os.listdir, and pick the ones that fits your usecase best. -- http://mail.python.org/mailman/listinfo/python-list