| 95 | } |
| 96 | |
| 97 | void InotifyService::createDirectory(int wd, std::string name) { |
| 98 | if (!mTree->nodeExists(wd)) { |
| 99 | return; |
| 100 | } |
| 101 | |
| 102 | dispatch(CREATED, wd, name); |
| 103 | mTree->addDirectory(wd, name, [this](std::string directory, std::string file) { |
| 104 | mQueue->enqueue(CREATED, directory, file); |
| 105 | }); |
| 106 | } |
| 107 | |
| 108 | void InotifyService::removeDirectory(int wd) { |
| 109 | mTree->removeDirectory(wd); |
no test coverage detected