New submission from lutecki :
When a directory doesn't exist, the resolve() method trims everything except
the first component (a doesn't exist here):
import pathlib
p = pathlib.Path(".", "a", "b", "c")
p
WindowsPath('a/b/c')
p.resolve(strict=False)
WindowsPath('C:/Python36/Scripts/a')
I would expect C:/Python36/Scripts/a/b/c
Am I missing something?
--
components: Windows
messages: 356589
nosy: lutecki, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: pathlib.Path.resolve(strict=False) strips final path components
type: behavior
versions: Python 3.6
___
Python tracker
<https://bugs.python.org/issue38793>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com