wxDir - GetAllFiles

=->-----Original Message-----
=->From: ZULIANI Thomas [mailto:thomas.zuliani@crf.canon.fr]
=->Sent: Wednesday, March 24, 2004 7:06 AM
=->To: wxPython-users@lists.wxwidgets.org
=->Subject: Re: [wxPython-users] wxDir - GetAllFiles
=->
=->
=->> What do you need wxDir.GetAllFiles for? maybe there is a better
=->> alternative in python's libraries.
=->
=->I only want to get the list of file with a given extension in the
=->current working directory.

Maybe this helps:

import glob
glob.glob( '*.asp' )

['addtoqueue.asp', 'barcode.asp', 'chooseenvironment.asp', 'dumpvars.asp',
'edit
queue.asp', 'environment.asp', 'escape.asp', 'fillbarcodeform.asp',
'index.asp',
'makepage.asp', 'printnow.asp', 'validatebarcodeform.asp']

glob does a lot of neat tricks for you...

jw