[Tutor] Renaming files

Gus Tabares gus.tabares@verizon.net
Thu Jan 23 22:46:48 2003


Hello,

	I'm trying to rename files that have endings as such:
blah.mp3.bunchofchars . I'm trying to strip off the extra chars and just
have *.mp3. The files were fed into a list via the os.listdir()
function. The searching I've done so far has come up empty. Should I be
using the string module for something like this or is this a simple
slice operation I'm missing? Any help is greatly appreciated.


Thanks,
Gus