commit | 59583bb7f43fb52afe188a464acdcc6fd1c52aa5 | [log] [tgz] |
---|---|---|
author | Kelvin Zhang <zhangkelvin@google.com> | Tue Jul 07 23:21:08 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Jul 07 23:21:08 2020 +0000 |
tree | acba17356e69187abfd4f1412d246b62aba70fa8 | |
parent | 4e18ea41094a9bc4e3eb821196d6d0aae6abb2b4 [diff] | |
parent | d282252007f3ccdf862a743baabea0bb774149fa [diff] |
Correctly check if a directory exists am: d282252007 Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1356903 Change-Id: I3f7834945018e2b857bcc2c515d9f7c1fd5650b4
diff --git a/hardware_android.cc b/hardware_android.cc index ac6cf16..0bf05e4 100644 --- a/hardware_android.cc +++ b/hardware_android.cc
@@ -181,7 +181,7 @@ bool HardwareAndroid::GetNonVolatileDirectory(base::FilePath* path) const { base::FilePath local_path(constants::kNonVolatileDirectory); - if (!base::PathExists(local_path)) { + if (!base::DirectoryExists(local_path)) { LOG(ERROR) << "Non-volatile directory not found: " << local_path.value(); return false; }