Do not emit CHANGED for folders if FAM is used

master
Yevgen Muntyan 2007-01-04 04:51:31 -06:00
parent 31c4a7e522
commit 8501e21b25
1 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
/*
* moofilewatch.h
*
* Copyright (C) 2004-2006 by Yevgen Muntyan <muntyan@math.tamu.edu>
* Copyright (C) 2004-2007 by Yevgen Muntyan <muntyan@math.tamu.edu>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -692,6 +692,10 @@ fam_event_to_file_event (FAMEvent *fe,
break;
case FAMChanged:
/* Do not emit CHANGED for folders, since we are interested only in
* folder contents */
if (monitor->isdir)
return NULL;
code = MOO_FILE_EVENT_CHANGED;
break;