[vox-tech] python: slicing extensions from file names
David Siedband
vox-tech@lists.lugod.org
Tue, 29 Jul 2003 10:46:23 -0700
I'd like to find a way to slice the extension off of a file name in python.
That is, I'd like to slice everything after the first period in the file
name.
I'm renaming the files based on another algorythm, but I need to keep
the extension the same.
I looked at the slice( ) function, but it seems to want me to specify
the size of the slice in characters. andI need to allow for extensions
with more or less than 3 characters.
Any suggestions on this would be much appreciated
--
David