Read In Directory Contents

Scott Billings aerogems at netins.net
Mon Jan 17 13:01:22 EST 2000


For a program I'm working on, it would be very useful if I could use an
expression such as:

list = os.getcwd() + "*.txt"

to have the names of all text files in the current dir placed into the
list. However, when I try this method, I get an error about no such file
existing.

So, how would I go about doing this?

-Scott Billings-




More information about the Python-list mailing list