| 50 | } |
| 51 | |
| 52 | void FsNode::removeNodeFromParent() { |
| 53 | std::shared_ptr<FsNode> parent = this->getParent().lock(); |
| 54 | if (parent) { |
| 55 | BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(parent->childrenByNameMutex); |
| 56 | parent->childrenByName.remove(this->name); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | void FsNode::loadChildren() { |
| 61 | if (!this->hasLoadedChildrenFromFileSystem) { |