On Sat, Jan 3, 2009 at 10:48 AM, bob gailer <bgai...@gmail.com> wrote:

> bob gailer wrote:
>>
>>
>> for fn in files:
>>   base, ext = os.path.splitext(fn)
>>   if ext in ['.flac','.mp3','.m4a']:   ## CORRECTION removed *
>>
>>
>
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.

cheers,

Jervis
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to