| 117 | } |
| 118 | |
| 119 | std::vector<std::string> Meta::GetImportChildPaths(const FilesystemView& parent_fs) const { |
| 120 | std::vector<std::string> res; |
| 121 | |
| 122 | if (!Empty()) { |
| 123 | const auto* entries = parent_fs.ListDirectory(); |
| 124 | if (entries) { |
| 125 | for (const auto &item: *entries) { |
| 126 | if (item.second.type != DirectoryTree::FileType::Directory) { |
| 127 | continue; |
| 128 | } |
| 129 | res.push_back(item.second.name); |
| 130 | } |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | return res; |
| 135 | } |
| 136 | |
| 137 | std::vector<Meta::FileItem> Meta::SearchImportPaths(const FilesystemView& parent_fs, std::string_view child_path) const { |
| 138 | if (!Empty()) { |
no test coverage detected