Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: utils.h

Issue 4771007: AU: Timestamp logs at startup. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git@master
Patch Set: address review comments, switched mkdir perms Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « main.cc ('k') | utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils.h
diff --git a/utils.h b/utils.h
index 208abe8d48c2a2e976b5b9173b9e935d5baeca64..34b862e109195ec393e81fdbc9562679bb791a90 100644
--- a/utils.h
+++ b/utils.h
@@ -60,6 +60,9 @@ std::string NormalizePath(const std::string& path, bool strip_trailing_slash);
// or an error occurs.
bool FileExists(const char* path);
+// Returns true if |path| exists and is a symbolic link.
+bool IsSymlink(const char* path);
+
// The last 6 chars of path must be XXXXXX. They will be randomly changed
// and a non-existent path will be returned. Intentionally makes a copy
// of the string passed in.
« no previous file with comments | « main.cc ('k') | utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698