MCPcopy Create free account
hub / github.com/colmap/colmap / GetDirList

Function GetDirList

src/colmap/util/file.cc:189–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189std::vector<std::filesystem::path> GetDirList(
190 const std::filesystem::path& path) {
191 std::vector<std::filesystem::path> dir_list;
192 for (auto it = std::filesystem::directory_iterator(path);
193 it != std::filesystem::directory_iterator();
194 ++it) {
195 if (std::filesystem::is_directory(*it)) {
196 const std::filesystem::path dir_path = *it;
197 dir_list.push_back(dir_path);
198 }
199 }
200 return dir_list;
201}
202
203namespace {
204

Callers 2

RunSparseMapperMethod · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68