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 abstract class Directory implements FileSystemEntity { | 10 abstract class Directory implements FileSystemEntity { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 81 |
82 /** | 82 /** |
83 * Synchronously creates a temporary directory with a name based on the | 83 * Synchronously creates a temporary directory with a name based on the |
84 * current path. The path is used as a template, and additional | 84 * current path. The path is used as a template, and additional |
85 * characters are appended to it to make a unique temporary directory name. | 85 * characters are appended to it to make a unique temporary directory name. |
86 * If the path is the empty string, a default system temp directory and name | 86 * If the path is the empty string, a default system temp directory and name |
87 * are used for the template. Returns the newly created temporary directory. | 87 * are used for the template. Returns the newly created temporary directory. |
88 */ | 88 */ |
89 Directory createTempSync(); | 89 Directory createTempSync(); |
90 | 90 |
| 91 Future<String> resolveSymbolicLinks(); |
| 92 |
| 93 String resolveSymbolicLinksSync(); |
| 94 |
91 /** | 95 /** |
92 * Renames this directory. Returns a [:Future<Directory>:] that completes | 96 * Renames this directory. Returns a [:Future<Directory>:] that completes |
93 * with a [Directory] instance for the renamed directory. | 97 * with a [Directory] instance for the renamed directory. |
94 * | 98 * |
95 * If newPath identifies an existing directory, that directory is | 99 * If newPath identifies an existing directory, that directory is |
96 * replaced. If newPath identifies an existing file, the operation | 100 * replaced. If newPath identifies an existing file, the operation |
97 * fails and the future completes with an exception. | 101 * fails and the future completes with an exception. |
98 */ | 102 */ |
99 Future<Directory> rename(String newPath); | 103 Future<Directory> rename(String newPath); |
100 | 104 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 if (path != null) { | 199 if (path != null) { |
196 sb.write(", path = $path"); | 200 sb.write(", path = $path"); |
197 } | 201 } |
198 } | 202 } |
199 return sb.toString(); | 203 return sb.toString(); |
200 } | 204 } |
201 final String message; | 205 final String message; |
202 final String path; | 206 final String path; |
203 final OSError osError; | 207 final OSError osError; |
204 } | 208 } |
OLD | NEW |