Message165348
| Author |
fossilet |
| Recipients |
fossilet |
| Date |
2012年07月13日.01:45:29 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1342143930.94.0.174584687761.issue15342@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年07月13日 01:45:31 | fossilet | set | recipients:
+ fossilet |
| 2012年07月13日 01:45:30 | fossilet | set | messageid: <1342143930.94.0.174584687761.issue15342@psf.upfronthosting.co.za> |
| 2012年07月13日 01:45:30 | fossilet | link | issue15342 messages |
| 2012年07月13日 01:45:29 | fossilet | create |
|