MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / isDirectory

Method isDirectory

Utilities/FileSystem.h:268–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266 }
267
268 static bool isDirectory(const std::string &path)
269 {
270 struct stat st;
271 if (!stat(path.c_str(), &st))
272 return S_ISDIR(st.st_mode);
273 return false;
274 }
275
276 static bool getFilesInDirectory(const std::string& path, std::vector<std::string> &res)
277 {

Callers

nothing calls this directly

Calls 2

statClass · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected