Find and Delete all files with .xxx extension

hokiegal99 hokiegal99 at
Sun Dec 14 16:06:14 CET 2003

"Georgy Pruss" <see_signature__ at> wrote in message news:<CvQCb.136552$dl.5520824 at>...
> "hokiegal99" <hokiegal99 at> wrote in message news:3FDBC1B8.4010205 at
> |          s = string.find(fname, '.mp3')
> |          if s >=1:
> I would say:  if fname.lower().endswith( '.mp3' ):

Why the '.lower()' part? Wouldn't if fname.endswith('.mp3'): work just
as well, or am I missing something here?

More information about the Python-list mailing list