You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will happen if you have an iterator to scandir that isn't full exhausted when it goes out of scope. It's not immediately obvious why it wouldn't close the native scandir iterator at the same time.
Coming a bit late but I think the issue was caused by the following: since Python 3.6, os.scandir returns a handle that might not free all resources in case it is dropped before exhausted. This can happen in particular when OSFS.scandir is called with a page argument.
Getting this warning under Python 3.7 for scandir():
/home/ajung/.buildout/eggs/fs-2.4.8-py3.7.egg/fs/osfs.py:521: ResourceWarning: unclosed scandir iterator <posix.ScandirIterator object at 0x7f61d00596b0>
yield Info(info)
The text was updated successfully, but these errors were encountered: