aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/platform/windows/windows_file_system.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/platform/windows/windows_file_system.cc')
-rw-r--r--tensorflow/core/platform/windows/windows_file_system.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/tensorflow/core/platform/windows/windows_file_system.cc b/tensorflow/core/platform/windows/windows_file_system.cc
index 682e46e0fc..b6b3722caa 100644
--- a/tensorflow/core/platform/windows/windows_file_system.cc
+++ b/tensorflow/core/platform/windows/windows_file_system.cc
@@ -382,8 +382,7 @@ Status WindowsFileSystem::NewReadOnlyMemoryRegionFromFile(
Status WindowsFileSystem::FileExists(const string& fname) {
constexpr int kOk = 0;
- std::wstring ws_translated_fname = Utf8ToWideChar(TranslateName(fname));
- if (_waccess(ws_translated_fname.c_str(), kOk) == 0) {
+ if (_access(TranslateName(fname).c_str(), kOk) == 0) {
return Status::OK();
}
return errors::NotFound(fname, " not found");