[Tutor] Re-Naming an existent file

Bill Campbell bill at celestial.net
Wed Oct 10 23:49:36 CEST 2007


On Wed, Oct 10, 2007, Ed Goulart wrote:
>
>   Hello!
>
>   Though I've tried very hard, I couldn't find in the WEB the needed
>   help; so, if you can help me, please...!!!

import os
os.rename(old, new)

Bill
--
INTERNET:   bill at celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

Do not meddle in the affairs of cats, for they are subtle and will piss on
your computer.  --Bruce Graham


More information about the Tutor mailing list