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

Method getPath

src/linux/InotifyTree.cpp:74–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74bool 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
84const std::vector<std::string>& InotifyTree::getExcludedPaths() const {
85 return mExcludedPaths;

Callers 2

dispatchMethod · 0.80
dispatchRenameMethod · 0.80

Calls 1

getFullPathMethod · 0.80

Tested by

no test coverage detected