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

Unified Diff: base/file_util_proxy.h

Issue 3567012: Support removeRecursively and new copy/move behaviors for FileSystem API (Closed)
Patch Set: '' Created 10 years, 2 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_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_proxy.h
diff --git a/base/file_util_proxy.h b/base/file_util_proxy.h
index 081c11b31739a29995932bded93cdf57d693e18f..c9342ea4c5d317382e2d568c76738f9d3b121af8 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.
« no previous file with comments | « no previous file | base/file_util_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698