[New-bugs-announce] [issue30906] os.path.join misjoins paths
mesheb82
report at bugs.python.org
Tue Jul 11 16:43:54 EDT 2017
New submission from mesheb82:
I'm trying to join paths on Windows with data taken from a user generated file. In doing so, I came across:
>>> os.path.join('dir1', '/dir2')
'/dir2'
I'd expect an error or:
'dir1\\dir2'
This has been tested and is consistent with Python 2.7.13 and 3.6.1.
----------
components: Library (Lib), Windows
messages: 298181
nosy: mesheb82, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: os.path.join misjoins paths
versions: Python 2.7, Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30906>
_______________________________________
More information about the New-bugs-announce
mailing list