omni::extras::getDirectoryItemsOfType
Defined in omni/extras/FileSystemHelpers.h
- 
inline std::vector<std::string> omni::extras::getDirectoryItemsOfType(const std::string &folder, carb::filesystem::DirectoryItemType type)
- Returns a list of either files or sub-folders in the given folder. - See also - carb::filesystem::IFileSystem::forEachDirectoryItem(), getDirectoryItems(), getSubfolders() - Parameters
- folder – The folder path to list 
- type – The carb::filesystem::DirectoryItemType to find 
 
- Returns
- a - std::vectorof items of- typein- folder(non-recursive), or an empty- std::vectorif the path could not be accessed or was otherwise empty. Each item in the vector will be prefixed with- folder.