| 173 | } |
| 174 | |
| 175 | InotifyTree::InotifyNode * InotifyTree::findNodeByPath(const std::string path) { |
| 176 | struct stat file; |
| 177 | if (stat(path.c_str(), &file) >= 0 && S_ISDIR(file.st_mode)) { |
| 178 | return findNodeByInode(file.st_ino); |
| 179 | } |
| 180 | |
| 181 | return NULL; |
| 182 | } |
| 183 | |
| 184 | |
| 185 | InotifyTree::~InotifyTree() { |