| Index: base/file_path.cc
|
| ===================================================================
|
| --- base/file_path.cc (revision 23136)
|
| +++ base/file_path.cc (working copy)
|
| @@ -452,3 +452,17 @@
|
| }
|
| }
|
| }
|
| +
|
| +bool FilePath::ReferencesParent() const {
|
| + std::vector<FilePath::StringType> components;
|
| + GetComponents(&components);
|
| +
|
| + std::vector<FilePath::StringType>::const_iterator it = components.begin();
|
| + for (; it != components.end(); ++it) {
|
| + const FilePath::StringType& component = *it;
|
| + if (component == kParentDirectory)
|
| + return true;
|
| + }
|
| + return false;
|
| +}
|
| +
|
|
|