diff options
Diffstat (limited to 'src/main/cpp/util/file_windows.cc')
-rw-r--r-- | src/main/cpp/util/file_windows.cc | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/main/cpp/util/file_windows.cc b/src/main/cpp/util/file_windows.cc index 3a5b5ac8e4..4293d5ead7 100644 --- a/src/main/cpp/util/file_windows.cc +++ b/src/main/cpp/util/file_windows.cc @@ -548,12 +548,23 @@ bool PathExists(const string& path) { } #ifdef COMPILER_MSVC -bool CanAccess(const string& path, bool read, bool write, bool exec) { +bool CanReadFile(const std::string& path) { // TODO(bazel-team): implement this. - pdie(255, "blaze_util::CanAccess is not implemented on Windows"); + pdie(255, "not implemented on Windows"); + return false; +} + +bool CanExecuteFile(const std::string& path) { + // TODO(bazel-team): implement this. + pdie(255, "not implemented on Windows"); + return false; +} + +bool CanAccessDirectory(const std::string& path) { + // TODO(bazel-team): implement this. + pdie(255, "not implemented on Windows"); return false; } -#else // not COMPILER_MSVC #endif // COMPILER_MSVC static bool IsDirectoryW(const wstring& path) { |