Problems with file IO in a thread, and shutil

MRAB google at mrabarnett.plus.com
Thu Jun 26 20:47:42 CEST 2008


On Jun 26, 8:06 am, Roopesh <roopesh.... at gmail.com> wrote:
> Thanks for the reply. I did testing in a clean system, were anti virus/
> spyware is not installed. It still gave this problem, in say 1 out of
> 1000 cases.
>
> By any chance would it be possible that the Windows OS has not
> completed writing to the file even after file.flush() and file.close()
> is called?
>
> Thanks
> Roopesh

Maybe it's a Windows service, eg the indexing service or generating
thumbnails. Anyway, retrying after a delay would still be worth it.



More information about the Python-list mailing list