Re: os.listdir('*.py')

Reimer Behrends (behrends@buran.fb10.tu-berlin.de)
23 Apr 1995 12:15:11 GMT

Hammond, Mark (MHammond@jm.cmutual.com.au) wrote:
[...]
: What is a nice, simple way of getting a filtered list of files from the os -
: eg, all '*.py' files.
[...]

import glob
list = glob.glob("*.py")

Does this help?

Reimer Behrends