MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / listAllFiles

Method listAllFiles

source/utils/ResourceManager.cpp:527–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525}
526
527std::vector<std::string> ResourceManager::listAllFiles(const std::string& directoryName)
528{
529 std::vector<std::string> files;
530 using namespace boost::filesystem;
531
532 if(is_directory(directoryName))
533 {
534 for(directory_iterator it(directoryName); it != directory_iterator(); ++it)
535 {
536 files.push_back(it->path().string());
537 }
538 }
539 return files;
540}
541
542Ogre::StringVectorPtr ResourceManager::listAllMusicFiles()
543{

Callers

nothing calls this directly

Calls 1

pathMethod · 0.80

Tested by

no test coverage detected