| OLD | NEW |
| 1 // Copyright (c) 2011, 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 /** |
| 6 * [Directory] objects are used for working with directories. |
| 7 */ |
| 5 interface Directory default _Directory { | 8 interface Directory default _Directory { |
| 6 /** | 9 /** |
| 7 * Creates a directory object. The path is either a full path or | 10 * Creates a directory object. The path is either a full path or |
| 8 * relative to the directory in which the Dart VM was | 11 * relative to the directory in which the Dart VM was |
| 9 * started. | 12 * started. |
| 10 */ | 13 */ |
| 11 Directory(String path); | 14 Directory(String path); |
| 12 | 15 |
| 13 /** | 16 /** |
| 14 * Check whether a directory with this name already exists. If the | 17 * Check whether a directory with this name already exists. If the |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 final String path; | 140 final String path; |
| 138 } | 141 } |
| 139 | 142 |
| 140 | 143 |
| 141 class DirectoryException { | 144 class DirectoryException { |
| 142 const DirectoryException([String this.message, int this.errorCode = 0]); | 145 const DirectoryException([String this.message, int this.errorCode = 0]); |
| 143 String toString() => "DirectoryException: $message"; | 146 String toString() => "DirectoryException: $message"; |
| 144 final String message; | 147 final String message; |
| 145 final int errorCode; | 148 final int errorCode; |
| 146 } | 149 } |
| OLD | NEW |