MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / FolderCreate

Method FolderCreate

cpp/src/platform/unix/FileOpsImpl.cpp:173–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173bool FileOpsImpl::FolderCreate
174(
175 const string _dirname
176)
177{
178 if (FolderExists(_dirname)) {
179 Log::Write(LogLevel_Warning, "Folder %s Exists for FolderCreate", _dirname.c_str());
180 return false;
181 }
182 int ret = mkdir(_dirname.c_str(), 0777);
183 if (ret == 0)
184 return true;
185 Log::Write(LogLevel_Warning, "Create Directory Failed: %s - %s", _dirname.c_str(), strerror(errno));
186 return false;
187}
188
189

Callers

nothing calls this directly

Calls 2

WriteFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected