New submission from Pan Yongzhi <[email protected]>:
I am constructing a source directory argument to rsync. It has to end with
slash due to rsync behavior. I use:
os.path.join('/src/dir', os.path.sep)
And run it and realized the source directory becomes '/'. Luckily it is not the
destination.
Why should join discard all previous path components if any component is an
absoulute path? This is such a surprise and renders this function useless.
----------
messages: 165348
nosy: fossilet
priority: normal
severity: normal
status: open
title: os.path.join behavior
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue15342>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com