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

Method FolderCreate

cpp/src/platform/windows/FileOpsImpl.cpp:159–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159bool FileOpsImpl::FolderCreate
160(
161 const string _dirname
162)
163{
164 if (FolderExists(_dirname)) {
165 Log::Write(LogLevel_Warning, "Folder %s Exists for FolderCreate", _dirname.c_str());
166 return false;
167 }
168 if (CreateDirectoryA(_dirname.c_str(), NULL) ==0) {
169 Log::Write(LogLevel_Warning, "Create Directory Failed: %s", _dirname.c_str());
170 return false;
171 }
172 return true;
173}

Callers

nothing calls this directly

Calls 2

WriteFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected