New Issue: Suffix function(s) in the Path module

16766, “e-kayrakli”, “Suffix function(s) in the Path module”, “2020-11-20T21:26:02Z”

Currently the Path module doesn’t have a support for querying the suffix of a file. At least we should have a function that returns the suffix from a path.

Python’s os.path has splitext:

>>> from os.path import splitext
>>> splitext("foo")
('foo', '')
>>> splitext("foo.tmp")
('foo', '.tmp')
>>> splitext("bar/foo.tmp")
('bar/foo', '.tmp')

Following the os.path naming and our camelCasing for most of the inherited function names, we should probably add something like splitExt.