summaryrefslogtreecommitdiffstats
path: root/base/file_util_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/file_util_win.cc')
-rw-r--r--base/file_util_win.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/file_util_win.cc b/base/file_util_win.cc
index 9c9a4e4..f5e39fa 100644
--- a/base/file_util_win.cc
+++ b/base/file_util_win.cc
@@ -419,6 +419,8 @@ bool CreateNewTempDirectory(const std::wstring& prefix,
}
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 @@ std::wstring FileEnumerator::Next() {
}
} // namespace file_util
-