// CHECK I heard that returned path can be either in short on long
// form...need to account for that!
wxFileName path = GetEventPath(*watch, e);
- wxFileSystemWatcherEvent event(flags, path, path);
- SendEvent(event);
+ // For files, check that it matches any filespec
+ if ( m_service->MatchesFilespec(path, watch->GetFilespec()) )
+ {
+ wxFileSystemWatcherEvent event(flags, path, path);
+ SendEvent(event);
+ }
}
}
}
return false;
}
- return DoAdd(path, events, wxFSWPath_Tree);
+ return AddAny(path, events, wxFSWPath_Tree);
}
#endif // wxUSE_FSWATCHER