mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
7f71655f69
commit
e1b5ce3428
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue