diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-07 08:35:09 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-07 08:35:09 +0000 |
commit | 81b18cad8c727119a822ea1329e673928701f324 (patch) | |
tree | 563c2d8fc07b9cfc012c19ae3b34507f201fdf1f /base/file_util_proxy.h | |
parent | 466ee60a295cdd63ee62ab10206eff809e0718ab (diff) | |
download | chromium_src-81b18cad8c727119a822ea1329e673928701f324.zip chromium_src-81b18cad8c727119a822ea1329e673928701f324.tar.gz chromium_src-81b18cad8c727119a822ea1329e673928701f324.tar.bz2 |
Reapply 61613 that was reverted for false valgrind alarm.
Original issue:
http://codereview.chromium.org/3567012/show
BUG=none
TEST=FileSystemOperationTest.*
TBR=ericu,thestig
Review URL: http://codereview.chromium.org/3603014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61771 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_proxy.h')
-rw-r--r-- | base/file_util_proxy.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/base/file_util_proxy.h b/base/file_util_proxy.h index 32b78630..e716ab7 100644 --- a/base/file_util_proxy.h +++ b/base/file_util_proxy.h @@ -89,6 +89,7 @@ class FileUtilProxy { // If destination file doesn't exist or destination's parent // doesn't exists. // If source dir exists but destination path is an existing file. + // If source file exists but destination path is an existing directory. // If source is a parent of destination. // If source doesn't exists. static bool Copy(scoped_refptr<MessageLoopProxy> message_loop_proxy, @@ -105,9 +106,11 @@ class FileUtilProxy { bool recursive, StatusCallback* callback); - // Deletes a file or empty directory. + // Deletes a file or a directory. + // It is an error to delete a non-empty directory with recursive=false. static bool Delete(scoped_refptr<MessageLoopProxy> message_loop_proxy, const FilePath& file_path, + bool recursive, StatusCallback* callback); // Moves a file or a directory from src_file_path to dest_file_path. |