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 class _Directory { | 5 patch class _Directory { |
6 /* patch */ static _current() native "Directory_Current"; | 6 /* patch */ static _current() native "Directory_Current"; |
7 /* patch */ static _setCurrent(path) native "Directory_SetCurrent"; | 7 /* patch */ static _setCurrent(path) native "Directory_SetCurrent"; |
8 /* patch */ static _createTemp(String path) native "Directory_CreateTemp"; | 8 /* patch */ static _createTemp(String path) native "Directory_CreateTemp"; |
9 /* patch */ static String _systemTemp() native "Directory_SystemTemp"; | 9 /* patch */ static String _systemTemp() native "Directory_SystemTemp"; |
10 /* patch */ static _exists(String path) native "Directory_Exists"; | 10 /* patch */ static _exists(String path) native "Directory_Exists"; |
11 /* patch */ static _create(String path) native "Directory_Create"; | 11 /* patch */ static _create(String path) native "Directory_Create"; |
12 /* patch */ static _deleteNative(String path, bool recursive) | 12 /* patch */ static _deleteNative(String path, bool recursive) |
13 native "Directory_Delete"; | 13 native "Directory_Delete"; |
14 /* patch */ static _rename(String path, String newPath) | 14 /* patch */ static _rename(String path, String newPath) |
15 native "Directory_Rename"; | 15 native "Directory_Rename"; |
16 /* patch */ static List _list(String path, bool recursive, bool followLinks) | 16 /* patch */ static List _list(String path, bool recursive, bool followLinks) |
17 native "Directory_List"; | 17 native "Directory_List"; |
18 } | 18 } |
| 19 |
| 20 patch class _AsyncDirectoryListerOps { |
| 21 /* patch */ factory _AsyncDirectoryListerOps(int pointer) => |
| 22 new _AsyncDirectoryListerOpsImpl(pointer); |
| 23 } |
| 24 |
| 25 class _AsyncDirectoryListerOpsImpl extends NativeFieldWrapperClass1 |
| 26 implements _AsyncDirectoryListerOps { |
| 27 _AsyncDirectoryListerOpsImpl._(); |
| 28 |
| 29 factory _AsyncDirectoryListerOpsImpl(int pointer) |
| 30 => new _AsyncDirectoryListerOpsImpl._().._setPointer(pointer); |
| 31 |
| 32 void _setPointer(int pointer) |
| 33 native "Directory_SetAsyncDirectoryListerPointer"; |
| 34 int getPointer() |
| 35 native "Directory_GetAsyncDirectoryListerPointer"; |
| 36 } |
OLD | NEW |