Can os.remove followed by os.path.isfile disagree?
ppaterson at gmail.com
Wed Jun 6 18:14:21 CEST 2007
Thanks for the response!
> I'd take the time to really examine the multiple threads of work you're running
> to make sure one of them isn't removing the file just as another creates it.
> Better still, use a locking semaphore around the code the creates/deletes the file
> to guarantee mutual exclusion.
The locking-semaphore idea is a good one - it would remove any
possibility that this kind of race condition is causing the problem.
More information about the Python-list