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

Function directoryExists

src/Core/Utils/FileUtils.cpp:107–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106
107 bool directoryExists(const std::string& path)
108 {
109 Debug::Log->trace("<FileUtils> Get Directory existence at {0}", path);
110
111#ifdef _USE_FILESYSTEM_FALLBACK
112 if (FsAccess(path.c_str(), 0) == 0)
113 {
114 struct stat status;
115 stat(path.c_str(), &status);
116 return (status.st_mode & S_IFDIR) != 0;
117 }
118 return false;
119#else
120 return std::filesystem::exists(path) && std::filesystem::is_directory(path);
121#endif
122 }
123
124 bool createDirectory(const std::string& path)
125 {

Callers 7

deleteDirectoryFunction · 0.85
findMethod · 0.85
findAllMethod · 0.85
Loaders.cppFile · 0.85
initPluginsMethod · 0.85
loadMethod · 0.85
loadAllMethod · 0.85

Calls 3

traceMethod · 0.80
statClass · 0.70
c_strMethod · 0.45

Tested by

no test coverage detected