|
Posted by Curtis on 02/24/07 09:26
Toby A Inkster wrote:
> Curtis wrote:
>
>> A little more involved, but this will allow for extensions like tar.gz
>> or tar.bz2, etc. It gets the position in the file name, of the first
>> ".", and keeps everything after.
>> [...]
>
> What about "nedit-5.5-src.tar.gz"? Your code will rename it to
> "newname.5-src.tar.gz" whereas ideally it would be named "newname.tar.gz".
>
Oh, I see what you meant now. I guess, if needed, one could store some
file extensions in an array to aid with more accurate renaming. Hehe,
I thought I had it. :P
--
Curtis, http://dyersweb.com
[Back to original message]
|