MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / getDirsInDir

Function getDirsInDir

plugins/plugin_utils/plugin_files.cpp:291–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291std::vector<std::string> getDirsInDir(const char* dir) {
292 std::vector<std::string> list;
293 if (!dir) {
294 return list;
295 }
296
297 std::string directory = convertPathToDelims(dir);
298
299#ifdef _WIN32
300 WindowsAddFileStack(directory.c_str(), "*.*", false, list, true);
301#else
302 LinuxAddFileStack(directory.c_str(), "*.*", false, list, true);
303#endif
304 return list;
305}
306
307std::string getPathForOS(const char* file) {
308 return convertPathToDelims(file);

Callers

nothing calls this directly

Calls 4

convertPathToDelimsFunction · 0.85
WindowsAddFileStackFunction · 0.85
LinuxAddFileStackFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected