New Issue: Should we rename 'basename'/'dirname' in the Path module?

16764, “e-kayrakli”, “Should we rename ‘basename’/‘dirname’ in the Path module?”, “2020-11-20T17:45:14Z”

The Path module design was based on Python’s os.path, which has basename and dirname functions that perform similarly to their POSIX counterparts, but differ in some cases. Our versions follow the python’s approach and differ from POSIX versions, as well.

Differences
$ python3
Python 3.8.5 (default, Jul 21 2020, 10:42:08)
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from os.path import dirname
>>> dirname("/foo/bar/")
'/foo/bar'
>>> dirname("/foo/bar")
'/foo'