OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 @patch | 5 @patch class _Directory { |
6 class _Directory { | 6 @patch static _current() native "Directory_Current"; |
7 @patch | 7 @patch static _setCurrent(path) native "Directory_SetCurrent"; |
8 static _current() native "Directory_Current"; | 8 @patch static _createTemp(String path) native "Directory_CreateTemp"; |
9 @patch | 9 @patch static String _systemTemp() native "Directory_SystemTemp"; |
10 static _setCurrent(path) native "Directory_SetCurrent"; | 10 @patch static _exists(String path) native "Directory_Exists"; |
11 @patch | 11 @patch static _create(String path) native "Directory_Create"; |
12 static _createTemp(String path) native "Directory_CreateTemp"; | 12 @patch static _deleteNative(String path, bool recursive) |
13 @patch | 13 native "Directory_Delete"; |
14 static String _systemTemp() native "Directory_SystemTemp"; | 14 @patch static _rename(String path, String newPath) |
15 @patch | 15 native "Directory_Rename"; |
16 static _exists(String path) native "Directory_Exists"; | 16 @patch static void _fillWithDirectoryListing( |
17 @patch | 17 List<FileSystemEntity> list, String path, bool recursive, |
18 static _create(String path) native "Directory_Create"; | 18 bool followLinks) |
19 @patch | 19 native "Directory_FillWithDirectoryListing"; |
20 static _deleteNative(String path, bool recursive) native "Directory_Delete"; | |
21 @patch | |
22 static _rename(String path, String newPath) native "Directory_Rename"; | |
23 @patch | |
24 static void _fillWithDirectoryListing( | |
25 List<FileSystemEntity> list, | |
26 String path, | |
27 bool recursive, | |
28 bool followLinks) native "Directory_FillWithDirectoryListing"; | |
29 } | 20 } |
30 | 21 |
31 @patch | 22 @patch class _AsyncDirectoryListerOps { |
32 class _AsyncDirectoryListerOps { | 23 @patch factory _AsyncDirectoryListerOps(int pointer) => |
33 @patch | |
34 factory _AsyncDirectoryListerOps(int pointer) => | |
35 new _AsyncDirectoryListerOpsImpl(pointer); | 24 new _AsyncDirectoryListerOpsImpl(pointer); |
36 } | 25 } |
37 | 26 |
38 class _AsyncDirectoryListerOpsImpl extends NativeFieldWrapperClass1 | 27 class _AsyncDirectoryListerOpsImpl extends NativeFieldWrapperClass1 |
39 implements _AsyncDirectoryListerOps { | 28 implements _AsyncDirectoryListerOps { |
40 _AsyncDirectoryListerOpsImpl._(); | 29 _AsyncDirectoryListerOpsImpl._(); |
41 | 30 |
42 factory _AsyncDirectoryListerOpsImpl(int pointer) => | 31 factory _AsyncDirectoryListerOpsImpl(int pointer) |
43 new _AsyncDirectoryListerOpsImpl._().._setPointer(pointer); | 32 => new _AsyncDirectoryListerOpsImpl._().._setPointer(pointer); |
44 | 33 |
45 void _setPointer(int pointer) | 34 void _setPointer(int pointer) |
46 native "Directory_SetAsyncDirectoryListerPointer"; | 35 native "Directory_SetAsyncDirectoryListerPointer"; |
47 int getPointer() native "Directory_GetAsyncDirectoryListerPointer"; | 36 int getPointer() |
| 37 native "Directory_GetAsyncDirectoryListerPointer"; |
48 } | 38 } |
OLD | NEW |