Remy Roy added the comment:
>From my point of view, Issue 25994 is about the potential file
>descriptor/handle leaks and this issue is about being unable to perform some
>filesystem calls because of a hidden unclosed file descriptor/handle.
I am not going to protest if you want to t
Remy Roy added the comment:
This issue is not same as Issue 25994 but it is quite related. Some kind of
close() method and/or context manager support could help here as well.
--
___
Python tracker
<http://bugs.python.org/issue26
Remy Roy added the comment:
I believe Eryk's explanation on how a file in Windows doesn't actually get
unlinked until all handles and kernel pointer references are closed is spot on
about the problem I had.
I had a complex example that could probably have been simplified to what Er
New submission from Remy Roy:
On Windows, os.scandir will keep a handle on the directory being scanned until
the iterator is exhausted. This behavior can cause various problems if try to
use some filesystem calls like os.chmod or os.remove on the directory while the
handle is still being kept