| 86 | } |
| 87 | |
| 88 | std::shared_ptr<FsNode> FsOpenNode::getDirectoryEntry(U32 index, BString& name) { |
| 89 | if (!this->node) { |
| 90 | return nullptr; |
| 91 | } |
| 92 | this->loadDirEntries(); |
| 93 | if (index==0) |
| 94 | name = B("."); |
| 95 | else if (index==1 && this->node->getParent().lock()) |
| 96 | name = B(".."); |
| 97 | else |
| 98 | name = this->dirEntries[index]->name; |
| 99 | return this->dirEntries[index]; |
| 100 | } |
no test coverage detected