<div class="gmail_quote">On 29 April 2010 10:06, Matt McCutchen <span dir="ltr"><<a href="mailto:matt@mattmccutchen.net">matt@mattmccutchen.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Wed, 2010-04-28 at 22:24 +1000, David Schoen wrote:<br>
> Also when I use rsync I like to put slashes on the end of all paths as<br>
> it works closer to the way you're thinking, e.g.:<br>
> rsync -av /path/to/source/directory/ /path/to/destination/directory/<br>
><br>
> other wise you will probably end up with two copies after your second<br>
> run, one in /path/to/destination/directory and the second in<br>
> /path/to/destination/directory/directory . Which probably isn't what<br>
> you want.<br>
<br>
I believe the behavior you describe is a bug. "rsync src dest" should<br>
always copy to dest/src . However, if dest does not exist yet /and/ src<br>
happens to be empty, "solo file" mode will trip and the source path will<br>
be ignored. This is a pointless inconsistency. I think an empty<br>
directory should not be regarded as a solo file. In commit a7d461f,<br>
Wayne changed a comment in get_local_name to suggest that but apparently<br>
did not change the code to match.<br></blockquote></div><br>You're right, it does. Either I have a faulty memory or at some point I've used a buggy version. Thanks for pointing this out :)<br><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup">
</div><style type="text/css">#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}</style>