[issue10395] new os.path function to extract common prefix based on path components
Rafik Draoui
report at bugs.python.org
Sun Nov 4 17:10:38 CET 2012
Rafik Draoui added the comment:
Here is a patch with an implementation of os.path.commonpath, along with tests and documentation. At the moment, this is only implemented for POSIX, as I don't feel like I know enough about Windows to tackle drive letters and UNC in paths without spending some more time on it.
This probably needs more tests for corner cases.
----------
nosy: +rafik
Added file: http://bugs.python.org/file27883/patch10395
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10395>
_______________________________________
More information about the Python-bugs-list
mailing list