| 41 | } |
| 42 | |
| 43 | void InotifyService::dispatch(EventType action, int wd, std::string name) { |
| 44 | std::string path; |
| 45 | if (!mTree->getPath(path, wd)) { |
| 46 | return; |
| 47 | } |
| 48 | |
| 49 | mQueue->enqueue(action, path, name); |
| 50 | } |
| 51 | |
| 52 | void InotifyService::dispatchRename(int fromWd, std::string fromName, int toWd, std::string toName) { |
| 53 | std::string fromPath, toPath; |