MCPcopy Create free account
hub / github.com/EasyRPG/Player / GetImportChildPaths

Method GetImportChildPaths

src/meta.cpp:119–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119std::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
137std::vector<Meta::FileItem> Meta::SearchImportPaths(const FilesystemView& parent_fs, std::string_view child_path) const {
138 if (!Empty()) {

Callers 1

UpdateScanAndProgressMethod · 0.80

Calls 1

ListDirectoryMethod · 0.45

Tested by

no test coverage detected