| 270 | } |
| 271 | |
| 272 | void FileSystemWatcher::readEvents() { |
| 273 | auto events = d->readEventsFromFd(); |
| 274 | |
| 275 | for (const auto& event : events) { |
| 276 | const auto mask = event.mask; |
| 277 | |
| 278 | if (mask & d->fileChangeEvents) { |
| 279 | emit fileChanged(event.path); |
| 280 | } else if (mask & d->fileRemovalEvents) { |
| 281 | emit fileRemoved(event.path); |
| 282 | } |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | bool FileSystemWatcher::updateWatchedDirectories(QDirSet watchedDirectories) { |
| 287 | // the list may contain entries for directories which don't exist already, therefore we have to remove those first |
nothing calls this directly
no test coverage detected