commit | bd138dd08a905231b003576642337e712c131e1c | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Tue Feb 16 15:59:17 2021 -0800 |
committer | Eric Biggers <ebiggers@google.com> | Tue Feb 16 16:05:38 2021 -0800 |
tree | 61a2524aad1c113bc8eb219948f1daab98350e77 | |
parent | 810bcca4d05eb1283cbac0567c673d2dae76e893 [diff] [blame] |
Move pathExists() to Utils.cpp This is useful as a general utility function. Change-Id: Id43fc106dc6c544c6e4ce65f10c7d4246b99e54a
diff --git a/Utils.h b/Utils.h index a727e63..cf85136 100644 --- a/Utils.h +++ b/Utils.h
@@ -179,6 +179,8 @@ status_t WaitForFile(const char* filename, std::chrono::nanoseconds timeout); +bool pathExists(const std::string& path); + bool FsyncDirectory(const std::string& dirname); bool writeStringToFile(const std::string& payload, const std::string& filename);