summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/eio/eio_monitor_kevent.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/lib/eio/eio_monitor_kevent.c b/src/lib/eio/eio_monitor_kevent.c
index a99b27763f..0750875e88 100644
--- a/src/lib/eio/eio_monitor_kevent.c
+++ b/src/lib/eio/eio_monitor_kevent.c
@@ -189,10 +189,13 @@ _eio_kevent_handler(void *data EINA_UNUSED, Ecore_Fd_Handler *fdh)
189 if(evs[i].fflags & NOTE_WRITE || evs[i].fflags & NOTE_ATTRIB) 189 if(evs[i].fflags & NOTE_WRITE || evs[i].fflags & NOTE_ATTRIB)
190 { 190 {
191 /* Handle directory/file creation and deletion */ 191 /* Handle directory/file creation and deletion */
192 _eio_kevent_event_find(backend); 192 if (ecore_file_is_dir(backend->parent->path))
193 /* Old default behaviour */ 193 _eio_kevent_event_find(backend);
194 event_code = EIO_MONITOR_FILE_MODIFIED; 194 else
195 _eio_monitor_send(backend->parent, backend->parent->path, event_code); 195 {
196 event_code = EIO_MONITOR_FILE_MODIFIED;
197 _eio_monitor_send(backend->parent, backend->parent->path, event_code);
198 }
196 } 199 }
197 } 200 }
198 201
@@ -279,7 +282,8 @@ void eio_monitor_backend_add(Eio_Monitor *monitor)
279 backend->parent = monitor; 282 backend->parent = monitor;
280 monitor->backend = backend; 283 monitor->backend = backend;
281 284
282 backend->prev_list = _eio_kevent_ls(backend->parent->path); 285 if (ecore_file_is_dir(backend->parent->path))
286 backend->prev_list = _eio_kevent_ls(backend->parent->path);
283 287
284 eina_hash_direct_add(_kevent_monitors, &backend->fd, backend); 288 eina_hash_direct_add(_kevent_monitors, &backend->fd, backend);
285 289