Remove items from a list
John Lenton
john at grulic.org.ar
Wed Sep 8 09:19:46 EDT 2004
On Wed, Sep 08, 2004 at 03:59:26AM +0000, Stan Cook wrote:
> I was trying to take a list of files in a directory and remove all
> but the ".dbf" files. I used the following to try to remove the
> items, but they would not remove. Any help would be greatly
> appreciated.
any reason you aren't doing glob.glob('*.dbf')?
--
John Lenton (john at grulic.org.ar) -- Random fortune:
Has everybody got HALVAH spread all over their ANKLES?? ... Now, it's
time to "HAVE A NAGEELA"!!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20040908/cda2d39a/attachment.sig>
More information about the Python-list
mailing list