[issue37506] os.mkdir creates invalid folder when path string has trailing space and slash

Steve Dower report at bugs.python.org
Fri Jul 5 14:21:44 EDT 2019


Steve Dower <steve.dower at python.org> added the comment:

Yeah, I'd rather not do this level of validation in Python.

If Windows decides to reject or automatically correct this, fine, but Python is just being a thin layer over the operating system here. We shouldn't try and prevent things that the OS allows.

----------
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37506>
_______________________________________


More information about the Python-bugs-list mailing list