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

Unified Diff: chrome/browser/resources/file_manager/js/util.js

Issue 9667040: Use FileEntry.copyTo() and FileEntry.moveTo() on GData file system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
Index: chrome/browser/resources/file_manager/js/util.js
===================================================================
--- chrome/browser/resources/file_manager/js/util.js (revision 126094)
+++ chrome/browser/resources/file_manager/js/util.js (working copy)
@@ -68,11 +68,12 @@
},
/**
- * Given a list of Entries, recurse any DirectoryEntries, and call back
- * with a list of all file and directory entries encountered (including the
- * original set).
+ * Given a list of Entries, recurse any DirectoryEntries if |recurse| is true,
+ * and call back with a list of all file and directory entries encountered
+ * (including the original set).
*/
- recurseAndResolveEntries: function(entries, successCallback, errorCallback) {
+ recurseAndResolveEntries: function(entries, recurse,
+ successCallback, errorCallback) {
var pendingSubdirectories = 0;
var pendingFiles = 0;
@@ -109,7 +110,9 @@
function tallyEntry(entry) {
if (entry.isDirectory) {
dirEntries.push(entry);
- recurseDirectory(entry);
+ if (recurse) {
+ recurseDirectory(entry);
+ }
} else {
fileEntries.push(entry);
pendingFiles++;

Powered by Google App Engine
This is Rietveld 408576698