[Nepomuk] Bugs, Patches and Scripts. - StrigiService & KInotify

Sebastian Trüg trueg at kde.org
Tue May 11 07:48:05 CEST 2010


Hi Vishesh,

so we only get a moveself if the parent folder is NOT watched. If that
is the case, please commit.

Cheers,
Sebastian

On 05/11/2010 01:15 AM, Vishesh Handa wrote:
> Hey Sebastian
> 
>     > I've tested it out. If a directory and its parent are being
>     watched, and
>     > the directory is moved the moveSelf event does *not* occur. The normal
>     > move does occur. :-)
> 
>     OK, if that is the case then I suppose your patch is correct. But better
>     add a lengthy comment to the code explaining why we treat moveself as a
>     delete.
> 
> 
> I refrained from committing as I thought I hadn't tested it out
> properly. It turns out that I hadn't. Long story shot. The EventMoveSelf
> event is called in both the cases.
> 
> 1. If a folder A is being watched and A is moved.
> 2. If a folder B/A is being watched and so is its parent B.
> 
> Here "being watched" 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)
> 
> I've tested it out properly this time. And it works perfectly. (Try it
> out if you have the time)
> 
> - Vishesh Handa
>  


More information about the Nepomuk mailing list