Deleting files with wildcards

Moshe Zadka moshez at math.huji.ac.il
Wed Jul 26 16:06:04 EDT 2000


On Wed, 26 Jul 2000, Manfred Pisecky wrote:

> Hello everyone!
> 
> I have to delete a bundle of files, e.g. *.txt in a portable way (it
> must work for Linux and NT). 

Use the glob module, and os.unlink

--
Moshe Zadka <moshez at math.huji.ac.il>
There is no IGLU cabal.
http://advogato.org/person/moshez





More information about the Python-list mailing list