En Tue, 28 Apr 2009 14:15:54 -0300, Daniel Fetchinson <fetchin...@googlemail.com> escribió:

I have a job that runs hourly.  Part of the processing is to rename a
file using os.rename.  The file name is the same every hour.
Sometimes the os.rename fails and the file does not get renamed.  It
only happens occasionally.  Most of the time it works just fine.

Unless you send a minimal version of the code you use and the complete
traceback when an error occurs it will be impossible to help you.

Also, don'f forget to tell us the OS / environment you're using.
On Windows, you cannot rename a file while it is open by any process.

--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to