| 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 /** | 5 /** |
| 6 * [Directory] objects are used for working with directories. | 6 * [Directory] objects are used for working with directories. |
| 7 */ | 7 */ |
| 8 abstract class Directory { | 8 abstract class Directory { |
| 9 /** | 9 /** |
| 10 * Creates a directory object. The path is either an absolute path, | 10 * Creates a directory object. The path is either an absolute path, |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 */ | 119 */ |
| 120 Directory renameSync(String newPath); | 120 Directory renameSync(String newPath); |
| 121 | 121 |
| 122 /** | 122 /** |
| 123 * List the sub-directories and files of this | 123 * List the sub-directories and files of this |
| 124 * [Directory]. Optionally recurse into sub-directories. Returns a | 124 * [Directory]. Optionally recurse into sub-directories. Returns a |
| 125 * [DirectoryLister] object representing the active listing | 125 * [DirectoryLister] object representing the active listing |
| 126 * operation. Handlers for files and directories should be | 126 * operation. Handlers for files and directories should be |
| 127 * registered on this DirectoryLister object. | 127 * registered on this DirectoryLister object. |
| 128 */ | 128 */ |
| 129 DirectoryLister list([bool recursive = false]); | 129 DirectoryLister list({bool recursive: false}); |
| 130 | 130 |
| 131 /** | 131 /** |
| 132 * Gets the path of this directory. | 132 * Gets the path of this directory. |
| 133 */ | 133 */ |
| 134 final String path; | 134 final String path; |
| 135 } | 135 } |
| 136 | 136 |
| 137 | 137 |
| 138 /** | 138 /** |
| 139 * A [DirectoryLister] represents an actively running listing operation. | 139 * A [DirectoryLister] represents an actively running listing operation. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 if (path != null) { | 192 if (path != null) { |
| 193 sb.add(", path = $path"); | 193 sb.add(", path = $path"); |
| 194 } | 194 } |
| 195 } | 195 } |
| 196 return sb.toString(); | 196 return sb.toString(); |
| 197 } | 197 } |
| 198 final String message; | 198 final String message; |
| 199 final String path; | 199 final String path; |
| 200 final OSError osError; | 200 final OSError osError; |
| 201 } | 201 } |
| OLD | NEW |