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 |
11 * be performed. The path to the directory can be [absolute] or [relative]. | 11 * be performed. The path to the directory can be [absolute] or relative. |
12 * You can get the parent directory using the getter [parent], | 12 * You can get the parent directory using the getter [parent], |
13 * a property inherited from [FileSystemEntity]. | 13 * a property inherited from [FileSystemEntity]. |
14 * | 14 * |
15 * In addition to being used as an instance to access the file system, | 15 * In addition to being used as an instance to access the file system, |
16 * Directory has a number of static properties, such as [systemTemp], | 16 * Directory has a number of static properties, such as [systemTemp], |
17 * which gets the system's temporary directory, and the getter and setter | 17 * which gets the system's temporary directory, and the getter and setter |
18 * [current], which you can use to access or change the current directory. | 18 * [current], which you can use to access or change the current directory. |
19 * | 19 * |
20 * Create a new Directory object with a pathname to access the specified | 20 * Create a new Directory object with a pathname to access the specified |
21 * directory on the file system from your program. | 21 * directory on the file system from your program. |
(...skipping 282 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( | 306 List<FileSystemEntity> listSync( |
307 {bool recursive: false, bool followLinks: true}); | 307 {bool recursive: false, 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 |