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; |
| 6 |
5 /** | 7 /** |
6 * [Directory] objects are used for working with directories. | 8 * [Directory] objects are used for working with directories. |
7 */ | 9 */ |
8 abstract class Directory { | 10 abstract class Directory { |
9 /** | 11 /** |
10 * Creates a directory object. The path is either an absolute path, | 12 * Creates a directory object. The path is either an absolute path, |
11 * or it is a relative path which is interpreted relative to the directory | 13 * or it is a relative path which is interpreted relative to the directory |
12 * in which the Dart VM was started. | 14 * in which the Dart VM was started. |
13 */ | 15 */ |
14 factory Directory(String path) => new _Directory(path); | 16 factory Directory(String path) => new _Directory(path); |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 if (path != null) { | 209 if (path != null) { |
208 sb.add(", path = $path"); | 210 sb.add(", path = $path"); |
209 } | 211 } |
210 } | 212 } |
211 return sb.toString(); | 213 return sb.toString(); |
212 } | 214 } |
213 final String message; | 215 final String message; |
214 final String path; | 216 final String path; |
215 final OSError osError; | 217 final OSError osError; |
216 } | 218 } |
OLD | NEW |