Hey Sebastian<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
&gt; I&#39;ve tested it out. If a directory and its parent are being watched, and<br>
&gt; the directory is moved the moveSelf event does *not* occur. The normal<br>
&gt; move does occur. :-)<br>
<br>
</div>OK, if that is the case then I suppose your patch is correct. But better<br>
add a lengthy comment to the code explaining why we treat moveself as a<br>
delete.<br>
<br></blockquote><div><br>I refrained from committing as I thought I hadn&#39;t tested it out properly. It turns out that I hadn&#39;t. Long story shot. The EventMoveSelf event is called in both the cases.<br><br>1. If a folder A is being watched and A is moved.<br>
2. If a folder B/A is being watched and so is its parent B.<br><br>Here &quot;being watched&quot; means explicitly adding a watch. It does NOT apply to sub folders of the watched folder, even though they are also being watched. (watches are recursive)<br>
<br>I&#39;ve tested it out properly this time. And it works perfectly. (Try it out if you have the time)<br><br>- Vishesh Handa <br></div><div> <br></div></div>