getDirectoryItems#
Fully qualified name: omni::extras::getDirectoryItems
Defined in omni/extras/FileSystemHelpers.h
- inline std::vector<std::string> omni::extras::getDirectoryItems(
- carb::cpp::zstring_view folder,
Returns a list of all files and sub-folders in the given folder.
See also
carb::filesystem::IFileSystem::forEachDirectoryItem(), getDirectoryItemsOfType(), getSubfolders()
- Parameters:
folder – The folder path to list
- Returns:
a
std::vectorof all files and sub-folders infolder(non-recursive), or an emptystd::vectorif the path could not be accessed or was otherwise empty. Each item in the vector will be prefixed withfolder.