| 120 | } |
| 121 | |
| 122 | void InotifyTree::removeNodeReferenceByWD(int wd) { |
| 123 | auto nodeIterator = mInotifyNodeByWatchDescriptor->find(wd); |
| 124 | if (nodeIterator != mInotifyNodeByWatchDescriptor->end()) { |
| 125 | mInotifyNodeByWatchDescriptor->erase(nodeIterator); |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | void InotifyTree::renameDirectory(int fromWd, std::string fromName, int toWd, std::string toName) { |
| 130 | auto fromNodeIterator = mInotifyNodeByWatchDescriptor->find(fromWd); |