Index: base/file_path.h |
=================================================================== |
--- base/file_path.h (revision 23136) |
+++ base/file_path.h (working copy) |
@@ -224,6 +224,10 @@ |
// separator. |
FilePath StripTrailingSeparators() const; |
+ // Returns true if this FilePath contains any attempt to reference a parent |
+ // directory (i.e. has a path component that is ".." |
+ bool ReferencesParent() const; |
+ |
// Older Chromium code assumes that paths are always wstrings. |
// This function converts a wstring to a FilePath, and is useful to smooth |
// porting that old code to the FilePath API. |