diff options
author | mmoss@google.com <mmoss@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-09 22:35:16 +0000 |
---|---|---|
committer | mmoss@google.com <mmoss@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-09 22:35:16 +0000 |
commit | 81569624c8daa060aaab5894df4f834e102c5c95 (patch) | |
tree | 297fb29de8018b98a53590f20c491868187ebe69 /base/file_util.h | |
parent | f9987b49140ea45f9f597e67dd85c2428a8cb242 (diff) | |
download | chromium_src-81569624c8daa060aaab5894df4f834e102c5c95.zip chromium_src-81569624c8daa060aaab5894df4f834e102c5c95.tar.gz chromium_src-81569624c8daa060aaab5894df4f834e102c5c95.tar.bz2 |
Make CreateDirectory consistent on Win and Posix when directory exists.
Review URL: http://codereview.chromium.org/1681
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1941 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.h')
-rw-r--r-- | base/file_util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/file_util.h b/base/file_util.h index af8ac90..304d3cb 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -222,7 +222,8 @@ bool CreateNewTempDirectory(const std::wstring& prefix, 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 @@ bool RenameFileAndResetSecurityDescriptor( } // namespace file_util #endif // BASE_FILE_UTIL_H_ - |