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

Method fixPaths

src/linux/InotifyTree.cpp:390–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390void InotifyTree::InotifyNode::fixPaths() {
391 std::string parentPath = mParent->getFullPath();
392 std::string fullPath = createFullPath(parentPath, mName);
393
394 if (fullPath == mFullPath) {
395 return;
396 }
397
398 mFullPath = fullPath;
399
400 for(auto i = mChildren->begin(); i != mChildren->end(); ++i) {
401 i->second->fixPaths();
402 }
403}
404
405std::string InotifyTree::InotifyNode::getFullPath() {
406 return mFullPath;

Callers

nothing calls this directly

Calls 1

getFullPathMethod · 0.80

Tested by

no test coverage detected