Author fossilet
Recipients fossilet
Date 2012-07-13.01:45:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2012-07-13 01:45:31fossiletsetrecipients: + fossilet
2012-07-13 01:45:30fossiletsetmessageid: <>
2012-07-13 01:45:30fossiletlinkissue15342 messages
2012-07-13 01:45:29fossiletcreate