MCPcopy Create free account
hub / github.com/audacity/audacity / findFilesWithExt

Function findFilesWithExt

libraries/lib-vst3/module_linux.cpp:224–244  ·  view source on GitHub ↗

------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

222
223//------------------------------------------------------------------------
224void findFilesWithExt (const std::string& path, const std::string& ext, Module::PathList& pathList,
225 bool recursive = true)
226{
227 try
228 {
229 for (auto& p : filesystem::directory_iterator (path))
230 {
231 if (p.path ().extension () == ext)
232 {
233 pathList.push_back (p.path ().generic_string ());
234 }
235 else if (recursive && p.status ().type () == filesystem::file_type::directory)
236 {
237 findFilesWithExt (p.path (), ext, pathList);
238 }
239 }
240 }
241 catch (...)
242 {
243 }
244}
245
246//------------------------------------------------------------------------
247void findModules (const std::string& path, Module::PathList& pathList)

Callers 2

findModulesFunction · 0.70
getSnapshotsMethod · 0.70

Calls 3

pathMethod · 0.45
push_backMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected