Find and Delete all files with .xxx extension

Georgy Pruss see_signature__ at hotmail.com
Sat Dec 13 22:09:22 EST 2003


"hokiegal99" <hokiegal99 at hotmail.com> wrote in message news:3FDBC1B8.4010205 at hotmail.com...
|          s = string.find(fname, '.mp3')
|          if s >=1:

I would say:  if fname.lower().endswith( '.mp3' ):






More information about the Python-list mailing list