Index: base/file_util.cc |
=================================================================== |
--- base/file_util.cc (revision 29084) |
+++ base/file_util.cc (working copy) |
@@ -322,6 +322,10 @@ |
return ContentsEqual(FilePath::FromWStringHack(filename1), |
FilePath::FromWStringHack(filename2)); |
} |
+bool CopyFile(const std::wstring& from_path, const std::wstring& to_path) { |
+ return CopyFile(FilePath::FromWStringHack(from_path), |
+ FilePath::FromWStringHack(to_path)); |
+} |
bool CreateDirectory(const std::wstring& full_path) { |
return CreateDirectory(FilePath::FromWStringHack(full_path)); |
} |
@@ -341,6 +345,9 @@ |
bool Delete(const std::wstring& path, bool recursive) { |
return Delete(FilePath::FromWStringHack(path), recursive); |
} |
+bool DirectoryExists(const std::wstring& path) { |
+ return DirectoryExists(FilePath::FromWStringHack(path)); |
+} |
bool EndsWithSeparator(std::wstring* path) { |
return EndsWithSeparator(FilePath::FromWStringHack(*path)); |
} |
@@ -382,9 +389,16 @@ |
*path_str = path.ToWStringHack(); |
return true; |
} |
+bool Move(const std::wstring& from_path, const std::wstring& to_path) { |
+ return Move(FilePath::FromWStringHack(from_path), |
+ FilePath::FromWStringHack(to_path)); |
+} |
FILE* OpenFile(const std::wstring& filename, const char* mode) { |
return OpenFile(FilePath::FromWStringHack(filename), mode); |
} |
+bool PathExists(const std::wstring& path) { |
+ return PathExists(FilePath::FromWStringHack(path)); |
+} |
int ReadFile(const std::wstring& filename, char* data, int size) { |
return ReadFile(FilePath::FromWStringHack(filename), data, size); |
} |