Index: base/file_util.h |
diff --git a/base/file_util.h b/base/file_util.h |
index bba7e2d201547c1ef270e2d04c75aa7ced034703..e34d0defe9a8220993f2626cbf03381dec82b420 100644 |
--- a/base/file_util.h |
+++ b/base/file_util.h |
@@ -179,6 +179,14 @@ bool ReadFileToString(const FilePath& path, std::string* contents); |
// in |buffer|. This function is protected against EINTR and partial reads. |
// Returns true iff |bytes| bytes have been successfuly read from |fd|. |
bool ReadFromFD(int fd, char* buffer, size_t bytes); |
+ |
+// Creates a symbolic link at |symlink| pointing to |target|. Returns |
+// false on failure. |
+bool CreateSymbolicLink(const FilePath& target, const FilePath& symlink); |
+ |
+// Reads the given |symlink| and returns where it points to in |target|. |
+// Returns false upon failure. |
+bool ReadSymbolicLink(const FilePath& symlink, FilePath* target); |
#endif // defined(OS_POSIX) |
#if defined(OS_WIN) |