Chromium Code Reviews| Index: base/file_util_win.cc |
| =================================================================== |
| --- base/file_util_win.cc (revision 1925) |
| +++ base/file_util_win.cc (working copy) |
| @@ -419,6 +419,8 @@ |
| } |
| bool CreateDirectory(const std::wstring& full_path) { |
| + if (PathExists(full_path)) |
| + return true; |
| int err = SHCreateDirectoryEx(NULL, full_path.c_str(), NULL); |
| return err == ERROR_SUCCESS; |
| } |
| @@ -643,4 +645,3 @@ |
| } |
| } // namespace file_util |
| - |