[Tutor] Better way - fnmatch with list ? CORRECTION

Damon Timm damontimm at gmail.com
Sat Jan 3 22:27:47 CET 2009


On Fri, Jan 2, 2009 at 7:16 PM, Jervis Whitley <jervisau at gmail.com> wrote:
> for fn in files:
>   base, ext = os.path.splitext(fn)
>   if ext.lower() in ['.flac', '.mp3', '.mp4']:
>
> takes into account systems with case sensitive filenames.

Thanks!  Will throw that in there.  I'm getting it ... bit by little bit.

>
> cheers,
>
> Jervis
>
>


More information about the Tutor mailing list