Index: base/file_util.cc |
=================================================================== |
--- base/file_util.cc (revision 180593) |
+++ base/file_util.cc (working copy) |
@@ -77,6 +77,18 @@ |
value.insert(last_dot, suffix); |
} |
+bool Move(const FilePath& from_path, const FilePath& to_path) { |
+ if (from_path.ReferencesParent() || to_path.ReferencesParent()) |
+ return false; |
+ return MoveUnsafe(from_path, to_path); |
+} |
+ |
+bool CopyFile(const FilePath& from_path, const FilePath& to_path) { |
+ if (from_path.ReferencesParent() || to_path.ReferencesParent()) |
+ return false; |
+ return CopyFileUnsafe(from_path, to_path); |
+} |
+ |
bool ContentsEqual(const FilePath& filename1, const FilePath& filename2) { |
// We open the file in binary format even if they are text files because |
// we are just comparing that bytes are exactly same in both files and not |