Change by Felipe A. Hernandez :
--
components: +Library (Lib)
type: -> behavior
versions: +Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issu
Felipe A. Hernandez added the comment:
import traceback
import multiprocessing.managers
class MyManager(multiprocessing.managers.SyncManager):
pass
class DictList(multiprocessing.managers.BaseProxy):
_method_to_typeid_ = {'__getitem__': 'dict'}
def _
Felipe A. Hernandez added the comment:
After some tests, due the accumulating nature of fwalk, I've just realised it's
not very safe for big directories, so I'll be closing this issue.
Alternatively, using py37+ fd based scandir, and dir_fd unlink and rmdir calls
would re
New submission from Felipe A. Hernandez :
os.rmtree has fd-based symlink replacement protection when iterating with
scandir (after bpo-28564).
This logic could be greatly simplified simply by os.fwalk in supported
platforms, which already implements a similar (maybe safer) protection