summaryrefslogtreecommitdiffstats
path: root/base/file_path.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/file_path.h')
-rw-r--r--base/file_path.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/file_path.h b/base/file_path.h
index 8513592..cadf2cf 100644
--- a/base/file_path.h
+++ b/base/file_path.h
@@ -163,6 +163,11 @@ class FilePath {
// platforms, an absolute path begins with a separator character.
bool IsAbsolute() const;
+ // Returns true if this FilePath represents a parent dir of |other|. Both
+ // paths are normalized before doing the comparison, but neither |this| nor
+ // |other| are modified.
+ bool Contains(const FilePath& other) const;
+
// Returns a copy of this FilePath that does not end with a trailing
// separator.
FilePath StripTrailingSeparators() const;