| 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 part of dart.io; | 5 part of dart.io; |
| 6 | 6 |
| 7 class _Directory implements Directory { | 7 class _Directory extends FileSystemEntity implements Directory { |
| 8 static const CREATE_REQUEST = 0; | 8 static const CREATE_REQUEST = 0; |
| 9 static const DELETE_REQUEST = 1; | 9 static const DELETE_REQUEST = 1; |
| 10 static const EXISTS_REQUEST = 2; | 10 static const EXISTS_REQUEST = 2; |
| 11 static const CREATE_TEMP_REQUEST = 3; | 11 static const CREATE_TEMP_REQUEST = 3; |
| 12 static const LIST_START_REQUEST = 4; | 12 static const LIST_START_REQUEST = 4; |
| 13 static const LIST_NEXT_REQUEST = 5; | 13 static const LIST_NEXT_REQUEST = 5; |
| 14 static const LIST_STOP_REQUEST = 6; | 14 static const LIST_STOP_REQUEST = 6; |
| 15 static const RENAME_REQUEST = 7; | 15 static const RENAME_REQUEST = 7; |
| 16 | 16 |
| 17 final String path; | 17 final String path; |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 controller.addError( | 412 controller.addError( |
| 413 new DirectoryException("Directory listing failed", | 413 new DirectoryException("Directory listing failed", |
| 414 errorPath, | 414 errorPath, |
| 415 err)); | 415 err)); |
| 416 } else { | 416 } else { |
| 417 controller.addError( | 417 controller.addError( |
| 418 new DirectoryException("Internal error")); | 418 new DirectoryException("Internal error")); |
| 419 } | 419 } |
| 420 } | 420 } |
| 421 } | 421 } |
| OLD | NEW |