The function is os.rename(old, new). If you actually tried 'os.raname' (as your post suggests) that is an illegal function. I suspect that you mistyped it in your post, but Peter's replys is correct. Always copy and paste your code and your traceback error message so it will be precise.
Permisssion denied means that you don't have permission to rename this file. Normally this is a rights issue.
BTW-os.rename works on XP.
Larry Bates Syscon, Inc.
-g00tİ- wrote:
--------------( oo )--------------
I don't know if there's a beginner board, just tell me if it's the place;
I tried Python this weekend. I'm java coder and I was looking for handling names in os. I tried the os.raname('file.ext','nuFile.ext') and I got a Permission denied error. In the docs, it say that it should work only for UNIX, than it shouldn't work on XP (if I understood). I'm on XP, should I declare something to enable permission, or is it common error?
Sorry about that newCommer question, but it would help, I'm on that problem for a while...
--------------( oo )-------------- guillaumeLaBelle [alias gooİ] - Architecture CAAO
-- http://mail.python.org/mailman/listinfo/python-list