Re: Problems with file IO in a thread, and shutil

2008-06-27 Thread Roopesh
> Maybe it's a Windows service, eg the indexing service or generating > thumbnails. Anyway, retrying after a delay would still be worth it. Yes, this thing works :-) Thanks a lot. Thanks Roopesh -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems with file IO in a thread, and shutil

2008-06-26 Thread MRAB
On Jun 26, 8:06 am, Roopesh <[EMAIL PROTECTED]> 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 writi

Re: Problems with file IO in a thread, and shutil

2008-06-26 Thread Roopesh
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?

Re: Problems with file IO in a thread, and shutil

2008-06-25 Thread MRAB
On Jun 25, 4:11 pm, Roopesh <[EMAIL PROTECTED]> wrote: > Hi, > > I have a multithreaded application. There are two threads, T1 and T2. > Suppose that there are two folders A, B.  Thread T1 fetches data from > network and creates files in folder A and after creating each file, it > moves the file to

Problems with file IO in a thread, and shutil

2008-06-25 Thread Roopesh
Hi, I have a multithreaded application. There are two threads, T1 and T2. Suppose that there are two folders A, B. Thread T1 fetches data from network and creates files in folder A and after creating each file, it moves the file to folder B, using shutil.move(). Thread T2, takes files from folde