|
a/src/index/rclmonrcv.cpp |
|
b/src/index/rclmonrcv.cpp |
|
... |
|
... |
614 |
ev.m_etyp |= RclMonEvent::RCLEVT_ISDIR;
|
614 |
ev.m_etyp |= RclMonEvent::RCLEVT_ISDIR;
|
615 |
} else if (evp->mask & (IN_CREATE | IN_MOVED_TO)) {
|
615 |
} else if (evp->mask & (IN_CREATE | IN_MOVED_TO)) {
|
616 |
if (evp->mask & IN_ISDIR) {
|
616 |
if (evp->mask & IN_ISDIR) {
|
617 |
ev.m_etyp = RclMonEvent::RCLEVT_DIRCREATE;
|
617 |
ev.m_etyp = RclMonEvent::RCLEVT_DIRCREATE;
|
618 |
} else {
|
618 |
} else {
|
619 |
// Return null event. Will get modify event later
|
619 |
// We used to return null event because we would get a
|
620 |
return true;
|
620 |
// modify event later, but it seems not to be the case any
|
|
|
621 |
// more (10-2011). So generate MODIFY event
|
|
|
622 |
ev.m_etyp = RclMonEvent::RCLEVT_MODIFY;
|
621 |
}
|
623 |
}
|
622 |
} else if (evp->mask & (IN_IGNORED)) {
|
624 |
} else if (evp->mask & (IN_IGNORED)) {
|
623 |
if (!m_idtopath.erase(evp->wd)) {
|
625 |
if (!m_idtopath.erase(evp->wd)) {
|
624 |
LOGDEB0(("Got IGNORE event for unknown watch\n"));
|
626 |
LOGDEB0(("Got IGNORE event for unknown watch\n"));
|
625 |
} else {
|
627 |
} else {
|