omni::extras::getSubfolders

Defined in omni/extras/FileSystemHelpers.h

inline std::vector<std::string> omni::extras::getSubfolders(const std::vector<std::string> &folders)

Helper function to gather all sub-folders within an array of sub-folders.

Note

This is not recursive; it only goes one level deeper beyond the given collection of folders.

Parameters

folders – a std::vector of folders. This vector is walked and getSubfolders() is called on each entry. Each entry in the vector will be prefixed with the entry from folders that contained it.

Returns

a std::vector of sub-folders comprised of all of the sub-folders of the folders given in folders