C Smith wrote:
I'd throw in a check to verify that filename is indeed a flac:
> or more accurately
> import os, subprocess, re
> directory = '/abs/path'
> for track, filename in enumerate(os.listdir(directory), 1):
> pathname = os.path.join(directory, filename)
if filename.endswith(".flac"):
subprocess.call(['ffmpeg', '-i', pathname, filename[:-5]+'.mp3'])
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor