[Tutor] os.symlink can't find target
Dave Angel
davea at davea.name
Wed Feb 26 20:03:07 CET 2014
Bob Williams <linux at barrowhillfarm.org.uk> Wrote in message:
>
>>> linkName1 = pathList[j][0:-3] + "mp3"
>>
>> Isn't this exactly the same as pathList[j] ?
>>
> Actually, no. pathList[j] can contain either .mp3 files or .flac
> files. In fact the main function of the script is to run all the flacs
> through lame to convert them into mp3s. If they are already mp3s, then
> a symlink will suffice.
>
>>>
If you're dealing with more than one extension, and especially if
they're different lengths, consider using splitext
--
DaveA
More information about the Tutor
mailing list