Index: base/file_path.h |
diff --git a/base/file_path.h b/base/file_path.h |
index b6086514f284f44ae6f493678bb5cb3ef72f34c4..6b5910e065f83255ca28b3bdef24e0a5c4fb9d4a 100644 |
--- a/base/file_path.h |
+++ b/base/file_path.h |
@@ -151,6 +151,16 @@ class FilePath { |
// parent. |
bool IsParent(const FilePath& child) const; |
+ // If IsParent(child) holds, appends to path (if non-NULL) the |
+ // relative path to child and returns true. For example, if parent |
+ // holds "/Users/johndoe/Application Support", child holds |
Mark Mentovai
2009/09/16 18:33:41
Might be nice to put Library in here to make it mo
|
+ // "/Users/johndoe/Application Support/Google/Chrome/Default", and |
+ // *path holds "/Users/johndoe/Caches", then after |
+ // parent.AppendRelativePath(child, path) is called *path will hold |
+ // "/Users/johndoe/Caches/Google/Chrome/Default". Otherwise, |
+ // returns false. |
+ bool AppendRelativePath(const FilePath& child, FilePath* path) const; |
+ |
// Returns a FilePath corresponding to the directory containing the path |
// named by this object, stripping away the file component. If this object |
// only contains one component, returns a FilePath identifying |