diff options
author | skerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-27 16:46:04 +0000 |
---|---|---|
committer | skerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-27 16:46:04 +0000 |
commit | 0c93d31fd16ca9f2405065f8f748f03887188f63 (patch) | |
tree | 35db079e3c92a5bda6b1166aa1186dd33ae52b82 /base | |
parent | 0c7885e924a33156acad8bc840e7a0eb091ca2e7 (diff) | |
download | chromium_src-0c93d31fd16ca9f2405065f8f748f03887188f63.zip chromium_src-0c93d31fd16ca9f2405065f8f748f03887188f63.tar.gz chromium_src-0c93d31fd16ca9f2405065f8f748f03887188f63.tar.bz2 |
Fail to create a directory if there is a file in the path to be created.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/3444023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60657 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/file_util_win.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/base/file_util_win.cc b/base/file_util_win.cc index 61e6082..a376d0d 100644 --- a/base/file_util_win.cc +++ b/base/file_util_win.cc @@ -604,6 +604,7 @@ bool CreateDirectory(const FilePath& full_path) { } else { LOG(WARNING) << "CreateDirectory(" << full_path_str << "), " << "conflicts with existing file."; + return false; } } |