os.listdir('*.py')

Hammond, Mark (MHammond@jm.cmutual.com.au)
Sun, 23 Apr 95 10:03:00 PDT

The discussion on this prompted me to ask a question bugging me for a while.

What is a nice, simple way of getting a filtered list of files from the os -
eg, all '*.py' files.

The only way I can see to do it is to pass each file returned through regex
- but Im not sure this is 100% correct.

Mark.