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

Method FileExists

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

Source from the content-addressed store, hash-verified

399}
400
401Status WindowsFileSystem::FileExists(const string& fname) {
402 constexpr int kOk = 0;
403 std::wstring ws_translated_fname = Utf8ToWideChar(TranslateName(fname));
404 if (_waccess(ws_translated_fname.c_str(), kOk) == 0) {
405 return Status::OK();
406 }
407 return errors::NotFound(fname, " not found");
408}
409
410Status WindowsFileSystem::GetChildren(const string& dir,
411 std::vector<string>* result) {

Callers

nothing calls this directly

Calls 3

Utf8ToWideCharFunction · 0.85
NotFoundFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected