Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3202)

Unified Diff: base/file_util.h

Issue 1681: Make CreateDirectory consistent on Win and Posix when directory exists. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/file_util_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util.h
===================================================================
--- base/file_util.h (revision 1925)
+++ base/file_util.h (working copy)
@@ -222,7 +222,8 @@
std::wstring* new_temp_path);
// Creates a directory, as well as creating any parent directories, if they
-// don't exist. Returns 'true' on successful creation.
+// don't exist. Returns 'true' on successful creation, or if the directory
+// already exists.
bool CreateDirectory(const std::wstring& full_path);
// Returns the file size. Returns true on success.
@@ -320,4 +321,3 @@
} // namespace file_util
#endif // BASE_FILE_UTIL_H_
-
« no previous file with comments | « no previous file | base/file_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698