| 49 | } |
| 50 | |
| 51 | bool InotifyTree::existWatchedPath() { |
| 52 | struct stat file; |
| 53 | return stat(mWatchedPath.c_str(), &file) >= 0; |
| 54 | } |
| 55 | |
| 56 | void InotifyTree::addDirectory(int wd, std::string name, EmitCreatedEvent emitCreatedEvent) { |
| 57 | auto nodeIterator = mInotifyNodeByWatchDescriptor->find(wd); |