| 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 * A reference to a directory (or _folder_) on the file system. | 8 * A reference to a directory (or _folder_) on the file system. |
| 9 * | 9 * |
| 10 * A Directory instance is an object holding a [path] on which operations can | 10 * A Directory instance is an object holding a [path] on which operations can |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 * }); | 93 * }); |
| 94 * } | 94 * } |
| 95 * | 95 * |
| 96 * | 96 * |
| 97 * In addition to exists, the [stat], [rename], and | 97 * In addition to exists, the [stat], [rename], and |
| 98 * other methods, return Futures. | 98 * other methods, return Futures. |
| 99 * | 99 * |
| 100 * ## Other resources | 100 * ## Other resources |
| 101 * | 101 * |
| 102 * * [Dart by Example](https://www.dartlang.org/dart-by-example/#files-directori
es-and-symlinks) | 102 * * [Dart by Example](https://www.dartlang.org/dart-by-example/#files-directori
es-and-symlinks) |
| 103 * provides additional task-oriented code samples that show how to use | 103 * provides additional task-oriented code samples that show how to use |
| 104 * various API from the Directory class and the related [File] class. | 104 * various API from the Directory class and the related [File] class. |
| 105 * | 105 * |
| 106 * * [I/O for Command-Line Apps](https://www.dartlang.org/docs/dart-up-and-runni
ng/contents/ch03.html#ch03-dartio---file-and-socket-io-for-command-line-apps) | 106 * * [I/O for Command-Line |
| 107 * a section from _A Tour of the Dart Libraries_ | 107 * Apps](https://www.dartlang.org/docs/dart-up-and-running/ch03.html#dartio---
io-for-command-line-apps) |
| 108 * covers files and directories. | 108 * a section from _A Tour of the Dart Libraries_ covers files and directories. |
| 109 * | 109 * |
| 110 * * [Write Command-Line Apps](https://www.dartlang.org/docs/tutorials/cmdline/)
, | 110 * * [Write Command-Line Apps](https://www.dartlang.org/docs/tutorials/cmdline/)
, |
| 111 * a tutorial about writing command-line apps, includes information | 111 * a tutorial about writing command-line apps, includes information about |
| 112 * about files and directories. | 112 * files and directories. |
| 113 */ | 113 */ |
| 114 abstract class Directory implements FileSystemEntity { | 114 abstract class Directory implements FileSystemEntity { |
| 115 /** | 115 /** |
| 116 * Gets the path of this directory. | 116 * Gets the path of this directory. |
| 117 */ | 117 */ |
| 118 final String path; | 118 final String path; |
| 119 | 119 |
| 120 /** | 120 /** |
| 121 * Creates a [Directory] object. | 121 * Creates a [Directory] object. |
| 122 * | 122 * |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 * directories, files, and links. | 304 * directories, files, and links. |
| 305 */ | 305 */ |
| 306 List<FileSystemEntity> listSync({bool recursive: false, | 306 List<FileSystemEntity> listSync({bool recursive: false, |
| 307 bool followLinks: true}); | 307 bool followLinks: true}); |
| 308 | 308 |
| 309 /** | 309 /** |
| 310 * Returns a human readable string for this Directory instance. | 310 * Returns a human readable string for this Directory instance. |
| 311 */ | 311 */ |
| 312 String toString(); | 312 String toString(); |
| 313 } | 313 } |
| OLD | NEW |