summaryrefslogtreecommitdiffstats
path: root/base/file_util_proxy.h
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-05 06:23:59 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-05 06:23:59 +0000
commit406059253f11ef6b1521a633d1d5640805587a20 (patch)
tree13917db4d051ee7cdd3fb6c48adec60b24997c09 /base/file_util_proxy.h
parente42c4d260d85a91ef08bfd84ab0dc0423ff3c99f (diff)
downloadchromium_src-406059253f11ef6b1521a633d1d5640805587a20.zip
chromium_src-406059253f11ef6b1521a633d1d5640805587a20.tar.gz
chromium_src-406059253f11ef6b1521a633d1d5640805587a20.tar.bz2
Revert 61480 - Support removeRecursively and new copy/move behaviors added to the spec recently.
http://lists.w3.org/Archives/Public/public-webapps/2010JulSep/1101.html > For a move/copy of a file on top of existing file, or a directory on > top of an existing empty directory, you get an automatic overwrite. > A move/copy of a file on top of an existing directory, or of a > directory on top of an existing file, will always fail. > A move/copy of a file or directory on top of an existing non-empty > directory will always fail. BUG=32277 TEST=FileSystemOperationTest.* Review URL: http://codereview.chromium.org/3567012 TBR=kinuko@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61482 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_proxy.h')
-rw-r--r--base/file_util_proxy.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/base/file_util_proxy.h b/base/file_util_proxy.h
index e716ab7..32b78630 100644
--- a/base/file_util_proxy.h
+++ b/base/file_util_proxy.h
@@ -89,7 +89,6 @@ 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,
@@ -106,11 +105,9 @@ class FileUtilProxy {
bool recursive,
StatusCallback* callback);
- // Deletes a file or a directory.
- // It is an error to delete a non-empty directory with recursive=false.
+ // Deletes a file or empty directory.
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.