bug with os.rename in 2.4.1?
Duncan Booth
duncan.booth at invalid.invalid
Tue Apr 28 13:25:05 EDT 2009
t123 <tom.lukes at gmail.com> wrote:
> I was wondering if anyone has seen this problem before?
>
> 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.
>
> Appreciate any ideas.
>
My crystal ball says you are using Windows and don't always close the file
before you try to rename it.
More information about the Python-list
mailing list