Mond Wan <[email protected]> added the comment:
Let me clarify my expectation.
# For `as_posix()`
* PureWindowsPath can translate both POSIX path, and WINDOW path to POSIX path
via `as_posix()`
* Therefore, I expect PurePosixPath can translate both platform path to
POSIX path via `as_posix()`
* I just tried PurePosixPath() behave same between Window, and the docker.
* I am sorry for showing misleading information
# For `resolve()`
* In window platform, resolve() returns absolute path only if such file is able
to locate. Otherwise, it returns
relative path.
* In Linux platform, resolve() returns absolute path anyway
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue41448>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com