Bazaar/FSMon : fixed behaviour on file moves - it generated a spurious create event

git-svn-id: svn://ultimatepp.org/upp/trunk@4936 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
micio 2012-05-12 12:25:22 +00:00
parent 7f71655f69
commit e1b5ce3428

View file

@ -339,6 +339,9 @@ void FSMon::monitorCb(void)
// it's a true move
String newName = (buf->len ? buf->name : "");
EventsSelector(IN_MOVE | (mask & IN_ISDIR ? IN_ISDIR : 0), path, AppendFileName(monitoredPaths[idx], newName));
// skip the moveto
buf = (struct inotify_event *)((byte *)buf + BASE_BUFSIZE + buf->len);
}
else if(mask & IN_MOVED_FROM)
{