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
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