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

Vishesh Handa handa.vish at gmail.com
Tue May 11 01:15:51 CEST 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/nepomuk/attachments/20100511/87280d61/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kinotify.patch
Type: text/x-patch
Size: 1252 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/nepomuk/attachments/20100511/87280d61/attachment-0001.patch 


More information about the Nepomuk mailing list