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

Unified Diff: sdk/lib/io/io_service.dart

Issue 105133004: Add File.copy(Sync) to dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix permissions. Created 7 years 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 | « sdk/lib/io/file_impl.dart ('k') | tests/standalone/io/file_copy_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/io_service.dart
diff --git a/sdk/lib/io/io_service.dart b/sdk/lib/io/io_service.dart
index bf4b42b5eb63e8c3dcfc1bc79b33efc00a5965eb..4becb03a8590c121b4186daa5fecd95590230fc3 100644
--- a/sdk/lib/io/io_service.dart
+++ b/sdk/lib/io/io_service.dart
@@ -9,40 +9,41 @@ const int _FILE_EXISTS = 0;
const int _FILE_CREATE = 1;
const int _FILE_DELETE = 2;
const int _FILE_RENAME = 3;
-const int _FILE_OPEN = 4;
-const int _FILE_RESOLVE_SYMBOLIC_LINKS = 5;
-const int _FILE_CLOSE = 6;
-const int _FILE_POSITION = 7;
-const int _FILE_SET_POSITION = 8;
-const int _FILE_TRUNCATE = 9;
-const int _FILE_LENGTH = 10;
-const int _FILE_LENGTH_FROM_PATH = 11;
-const int _FILE_LAST_MODIFIED = 12;
-const int _FILE_FLUSH = 13;
-const int _FILE_READ_BYTE = 14;
-const int _FILE_WRITE_BYTE = 15;
-const int _FILE_READ = 16;
-const int _FILE_READ_INTO = 17;
-const int _FILE_WRITE_FROM = 18;
-const int _FILE_CREATE_LINK = 19;
-const int _FILE_DELETE_LINK = 20;
-const int _FILE_RENAME_LINK = 21;
-const int _FILE_LINK_TARGET = 22;
-const int _FILE_TYPE = 23;
-const int _FILE_IDENTICAL = 24;
-const int _FILE_STAT = 25;
-const int _SOCKET_LOOKUP = 26;
-const int _SOCKET_LIST_INTERFACES = 27;
-const int _SOCKET_REVERSE_LOOKUP = 28;
-const int _DIRECTORY_CREATE = 29;
-const int _DIRECTORY_DELETE = 30;
-const int _DIRECTORY_EXISTS = 31;
-const int _DIRECTORY_CREATE_TEMP = 32;
-const int _DIRECTORY_LIST_START = 33;
-const int _DIRECTORY_LIST_NEXT = 34;
-const int _DIRECTORY_LIST_STOP = 35;
-const int _DIRECTORY_RENAME = 36;
-const int _SSL_PROCESS_FILTER = 37;
+const int _FILE_COPY = 4;
+const int _FILE_OPEN = 5;
+const int _FILE_RESOLVE_SYMBOLIC_LINKS = 6;
+const int _FILE_CLOSE = 7;
+const int _FILE_POSITION = 8;
+const int _FILE_SET_POSITION = 9;
+const int _FILE_TRUNCATE = 10;
+const int _FILE_LENGTH = 11;
+const int _FILE_LENGTH_FROM_PATH = 12;
+const int _FILE_LAST_MODIFIED = 13;
+const int _FILE_FLUSH = 14;
+const int _FILE_READ_BYTE = 15;
+const int _FILE_WRITE_BYTE = 16;
+const int _FILE_READ = 17;
+const int _FILE_READ_INTO = 18;
+const int _FILE_WRITE_FROM = 19;
+const int _FILE_CREATE_LINK = 20;
+const int _FILE_DELETE_LINK = 21;
+const int _FILE_RENAME_LINK = 22;
+const int _FILE_LINK_TARGET = 23;
+const int _FILE_TYPE = 24;
+const int _FILE_IDENTICAL = 25;
+const int _FILE_STAT = 26;
+const int _SOCKET_LOOKUP = 27;
+const int _SOCKET_LIST_INTERFACES = 28;
+const int _SOCKET_REVERSE_LOOKUP = 29;
+const int _DIRECTORY_CREATE = 30;
+const int _DIRECTORY_DELETE = 31;
+const int _DIRECTORY_EXISTS = 32;
+const int _DIRECTORY_CREATE_TEMP = 33;
+const int _DIRECTORY_LIST_START = 34;
+const int _DIRECTORY_LIST_NEXT = 35;
+const int _DIRECTORY_LIST_STOP = 36;
+const int _DIRECTORY_RENAME = 37;
+const int _SSL_PROCESS_FILTER = 38;
class _IOService {
external static Future dispatch(int request, List data);
« no previous file with comments | « sdk/lib/io/file_impl.dart ('k') | tests/standalone/io/file_copy_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698