Find and Delete all files with .xxx extension

Georgy Pruss see_signature__ at hotmail.com
Sun Dec 14 04:09:22 CET 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