[issue19717] resolve() fails when the path doesn't exist

Vajrasky Kok report at bugs.python.org
Tue Dec 10 09:58:46 CET 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue19717>
_______________________________________


More information about the Python-bugs-list mailing list