MCPcopy Create free account
hub / github.com/Axosoft/nsfw / findNodeByPath

Method findNodeByPath

src/linux/InotifyTree.cpp:175–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175InotifyTree::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
185InotifyTree::~InotifyTree() {

Callers

nothing calls this directly

Calls 1

statClass · 0.70

Tested by

no test coverage detected