| 72 | } |
| 73 | |
| 74 | bool InotifyTree::getPath(std::string &out, int wd) { |
| 75 | auto nodeIterator = mInotifyNodeByWatchDescriptor->find(wd); |
| 76 | if (nodeIterator == mInotifyNodeByWatchDescriptor->end()) { |
| 77 | return false; |
| 78 | } |
| 79 | |
| 80 | out = nodeIterator->second->getFullPath(); |
| 81 | return true; |
| 82 | } |
| 83 | |
| 84 | const std::vector<std::string>& InotifyTree::getExcludedPaths() const { |
| 85 | return mExcludedPaths; |
no test coverage detected