Occasional OSError: [Errno 13] Permission denied on Windows
enoch at gmx.net
Thu Jan 5 12:42:56 EST 2006
Alec Wysoker wrote:
>>>Using Python 2.3.5 on Windows XP, I occasionally get OSError: [Errno
>>>13] Permission denied when calling os.remove(). This can occur with a
>>>file that is not used by any other process on the machine,
>>How do you know that?
> Yeah, good point. I don't really know. I should have said no process
> that I am aware of is using the file. I'll give sleep a try instead of
> gc. Thanks.
FWIW, you could use Filemon from Sysinternals,
If you are there, be sure to also look the other stuff on that side,
Mark Russinovich a has written a lot of very nice Windows utilities.
More information about the Python-list