MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / createDir

Function createDir

extlibs/elzip/src/elzip_fs_fallback.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29bool createDir(const std::string& dir)
30{
31#ifdef _WIN32
32 return bool(CreateDirectory(dir.c_str(), LPSECURITY_ATTRIBUTES(NULL)));
33#else
34 return bool(mkdir(dir.c_str(), S_IRUSR | S_IWUSR | S_IXUSR));
35#endif
36}
37
38std::vector<std::string> split(const std::string &str, const std::string &delimiters) {
39 std::vector<std::string> tokens;

Callers 1

extractZipFunction · 0.85

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected