Vajrasky Kok added the comment:
Thanks for the review, Antoine! Here is the updated patch. I haven't tested it
on Windows yet because I want to clarify one thing.
Let's say we have this valid directory:
/tmp/@test123 <= directory
And this directory only has one valid file:
/tmp/@test123/cutecat <= file
We agree that pathlib.Path('/tmp/@test123/foo').resolve(False) =>
'/tmp/@test123/foo'.
But what about this case:
pathlib.Path('/tmp/@test123/cutecat/foo').resolve(False)?
It should be "/tmp/@test123/cutecat" or "/tmp/@test123/cutecat/foo"?
----------
Added file:
http://bugs.python.org/file33075/add_non_strict_resolve_pathlib_v2.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue19717>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com