diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 081d7a6f97b..f9cded40c2c 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -3675,6 +3675,7 @@ features: os.remove(os.path.join(root, name)) for name in dirs: os.rmdir(os.path.join(root, name)) + os.rmdir(top) .. audit-event:: os.walk top,topdown,onerror,followlinks os.walk