<div class="gmail_quote">On 29 April 2010 10:06, Matt McCutchen <span dir="ltr">&lt;<a href="mailto:matt@mattmccutchen.net">matt@mattmccutchen.net</a>&gt;</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>
&gt; Also when I use rsync I like to put slashes on the end of all paths as<br>
&gt; it works closer to the way you&#39;re thinking, e.g.:<br>
&gt; rsync -av /path/to/source/directory/ /path/to/destination/directory/<br>
&gt;<br>
&gt; other wise you will probably end up with two copies after your second<br>
&gt; run, one in /path/to/destination/directory and the second in<br>
&gt; /path/to/destination/directory/directory . Which probably isn&#39;t what<br>
&gt; you want.<br>
<br>
I believe the behavior you describe is a bug.  &quot;rsync src dest&quot; should<br>
always copy to dest/src .  However, if dest does not exist yet /and/ src<br>
happens to be empty, &quot;solo file&quot; 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&#39;re right, it does. Either I have a faulty memory or at some point I&#39;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>