omni::extras::getSubfolders
Defined in omni/extras/FileSystemHelpers.h
- 
inline std::vector<std::string> omni::extras::getSubfolders(const std::string &folder)
- Helper function to gather all sub-folders within a given folder. - Effectively the same as - getDirectoryItemsOfType(folder, carb::filesystem::DirectoryItemType::eDirectory)- See also - carb::filesystem::IFileSystem::forEachDirectoryItem(), getDirectoryItems(), getDirectoryItemsOfType() - Parameters
- folder – The folder path to list 
- Returns
- a - std::vectorof sub-folders in- 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.