Find and Delete all files with .xxx extension

hokiegal99 hokiegal99 at hotmail.com
Sun Dec 14 16:06:14 CET 2003


"Georgy Pruss" <see_signature__ at hotmail.com> wrote in message news:<CvQCb.136552$dl.5520824 at twister.southeast.rr.com>...
> "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' ):

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