MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / CreateDir

Method CreateDir

tensorflow/core/platform/windows/windows_file_system.cc:455–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453}
454
455Status WindowsFileSystem::CreateDir(const string& name) {
456 Status result;
457 std::wstring ws_name = Utf8ToWideChar(name);
458 if (ws_name.empty()) {
459 return errors::AlreadyExists(name);
460 }
461 if (_wmkdir(ws_name.c_str()) != 0) {
462 result = IOError("Failed to create a directory: " + name, errno);
463 }
464 return result;
465}
466
467Status WindowsFileSystem::DeleteDir(const string& name) {
468 Status result;

Callers

nothing calls this directly

Calls 4

Utf8ToWideCharFunction · 0.85
IOErrorFunction · 0.85
c_strMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected