Re: win32 How to make sure a file is completely written?

2009-05-11 Thread justind
On May 11, 10:03 am, Tim Golden wrote: > justind wrote: > > Hello, > > > I'm usinghttp://code.activestate.com/recipes/156178/to watch a > > folder in windows. > > Wow, that takes me back. There's a bit more info (and a different > technique) here if you

win32 How to make sure a file is completely written?

2009-05-11 Thread justind
Hello, I'm using http://code.activestate.com/recipes/156178/ to watch a folder in windows. It's working perfectly, but sometimes when I try to open the file immediately after receiving the event, it's not ready to be opened--if I try to open it with PIL I get "IOError: cannot identify image file"