getSubfolders#

Fully qualified name: 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)

Parameters:

folder – The folder path to list

Returns:

a std::vector of sub-folders in folder (non-recursive), or an empty std::vector if the path could not be accessed or was otherwise empty. Each item in the vector will be prefixed with folder.