| 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 /** | 7 /** |
| 8 * [Directory] objects are used for working with directories. | 8 * [Directory] objects are used for working with directories. |
| 9 */ | 9 */ |
| 10 abstract class Directory { | 10 abstract class Directory { |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 /** | 133 /** |
| 134 * List the sub-directories and files of this | 134 * List the sub-directories and files of this |
| 135 * [Directory]. Optionally recurse into sub-directories. Returns a | 135 * [Directory]. Optionally recurse into sub-directories. Returns a |
| 136 * [DirectoryLister] object representing the active listing | 136 * [DirectoryLister] object representing the active listing |
| 137 * operation. Handlers for files and directories should be | 137 * operation. Handlers for files and directories should be |
| 138 * registered on this DirectoryLister object. | 138 * registered on this DirectoryLister object. |
| 139 */ | 139 */ |
| 140 DirectoryLister list({bool recursive: false}); | 140 DirectoryLister list({bool recursive: false}); |
| 141 | 141 |
| 142 /** | 142 /** |
| 143 * Returns a human readable string for this Directory instance. |
| 144 */ |
| 145 String toString(); |
| 146 |
| 147 /** |
| 143 * Gets the path of this directory. | 148 * Gets the path of this directory. |
| 144 */ | 149 */ |
| 145 final String path; | 150 final String path; |
| 146 } | 151 } |
| 147 | 152 |
| 148 | 153 |
| 149 /** | 154 /** |
| 150 * A [DirectoryLister] represents an actively running listing operation. | 155 * A [DirectoryLister] represents an actively running listing operation. |
| 151 * | 156 * |
| 152 * A [DirectoryLister] is obtained from a [Directory] object by calling | 157 * A [DirectoryLister] is obtained from a [Directory] object by calling |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 if (path != null) { | 214 if (path != null) { |
| 210 sb.add(", path = $path"); | 215 sb.add(", path = $path"); |
| 211 } | 216 } |
| 212 } | 217 } |
| 213 return sb.toString(); | 218 return sb.toString(); |
| 214 } | 219 } |
| 215 final String message; | 220 final String message; |
| 216 final String path; | 221 final String path; |
| 217 final OSError osError; | 222 final OSError osError; |
| 218 } | 223 } |
| OLD | NEW |