Brett Cannon <[email protected]> added the comment:
@Antoine: Basically Path.with_name() fails under '.' but works with '..'
although with a somewhat odd result. And then after that is the fact that
Path('.').name is the empty string but for Path('..').name it's '..' (which is
what causes Path('.').with_name() to fail).
----------
title: pathlib does not handle '..' directory -> pathlib.Path.with_name()
handles '.' and '..' inconsistently
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue37130>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com