[issue25577] os.path.dirname leave left quote and remove right one

Zachary Ware report at bugs.python.org
Sat Nov 7 10:10:51 EST 2015


Zachary Ware added the comment:

As far as os.path.dirname is concerned, you have a file named 'ciao.pdf"' in a directory called '"ciao/come/stai', which is what you're seeing. Since those are legal names, there's no way for os.path.dirname to know what you actually want. The solution is to handle the quotes yourself however you want.

----------
nosy: +zach.ware
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25577>
_______________________________________


More information about the Python-bugs-list mailing list