Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
os.mkdir() and os.rmdir() are wrappers around corresponding system calls. I do not think they should have additional parameters, especially for functionality which can be easily achieved by wrapping the call with the try/except block. For shutil.rmtree() see issue29699. I do not know a good use case for os.removedirs(). Seems it was added for symmetry to os.makedirs(), but it looks dangerous, because it can remove more than was created by os.makedirs(). shutil.rmtree() looks safer and more useful. Path.rmdir() I left to the maintainers of the pathlib module. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38194> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com