[issue11344] Add os.path.splitpath(path) function
Éric Araujo
report at bugs.python.org
Wed Jul 13 17:27:29 CEST 2011
Éric Araujo <merwok at netwok.org> added the comment:
I’m not sure this is correct for POSIX:
splitpath('/gparent/parent/') returns ['gparent', 'parent']
/ is a real directory, it should be the ultimate parent of any path IIUC.
On a related note, using “parent” for the leaf file looks strange to me, I think something like this would make more sense:
/gparent/parent/somedir/
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11344>
_______________________________________
More information about the Python-bugs-list
mailing list