| 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 extends FileSystemEntity implements Directory { | 7 class _Directory extends FileSystemEntity implements Directory { |
| 8 final String path; | 8 final String path; |
| 9 | 9 |
| 10 _Directory(this.path) { | 10 _Directory(this.path) { |
| 11 if (path is! String) { | 11 if (path is! String) { |
| 12 throw new ArgumentError('${Error.safeToString(path)} ' | 12 throw new ArgumentError('${Error.safeToString(path)} ' |
| 13 'is not a String'); | 13 'is not a String'); |
| 14 } | 14 } |
| 15 } | 15 } |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 responseError[_OSERROR_RESPONSE_ERROR_CODE]); | 381 responseError[_OSERROR_RESPONSE_ERROR_CODE]); |
| 382 var errorPath = message[RESPONSE_PATH]; | 382 var errorPath = message[RESPONSE_PATH]; |
| 383 if (errorPath == null) errorPath = path; | 383 if (errorPath == null) errorPath = path; |
| 384 controller.addError( | 384 controller.addError( |
| 385 new FileSystemException("Directory listing failed", errorPath, err)); | 385 new FileSystemException("Directory listing failed", errorPath, err)); |
| 386 } else { | 386 } else { |
| 387 controller.addError(new FileSystemException("Internal error")); | 387 controller.addError(new FileSystemException("Internal error")); |
| 388 } | 388 } |
| 389 } | 389 } |
| 390 } | 390 } |
| OLD | NEW |