| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 | 5 |
| 6 class DirectoryException { | 6 class DirectoryException { |
| 7 String toString() { return "DirectoryException: $message"; } | 7 String toString() { return "DirectoryException: $message"; } |
| 8 const DirectoryException(String this.message); | 8 const DirectoryException(String this.message); |
| 9 final String message; | 9 final String message; |
| 10 } | 10 } |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 } | 137 } |
| 138 | 138 |
| 139 void _closePort(ReceivePort port) { | 139 void _closePort(ReceivePort port) { |
| 140 if (port !== null) { | 140 if (port !== null) { |
| 141 port.close(); | 141 port.close(); |
| 142 } | 142 } |
| 143 } | 143 } |
| 144 | 144 |
| 145 String get path() { return _path; } | 145 String get path() { return _path; } |
| 146 | 146 |
| 147 bool _exists(String path) native "Directory_Exists"; | 147 int _exists(String path) native "Directory_Exists"; |
| 148 bool _create(String path) native "Directory_Create"; | 148 bool _create(String path) native "Directory_Create"; |
| 149 bool _delete(String path) native "Directory_Delete"; | 149 bool _delete(String path) native "Directory_Delete"; |
| 150 | 150 |
| 151 var _dirHandler; | 151 var _dirHandler; |
| 152 var _fileHandler; | 152 var _fileHandler; |
| 153 var _doneHandler; | 153 var _doneHandler; |
| 154 var _errorHandler; | 154 var _errorHandler; |
| 155 | 155 |
| 156 String _path; | 156 String _path; |
| 157 } | 157 } |
| OLD | NEW |