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 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 | |
95 /** | 91 /** |
96 * Renames this directory. Returns a [:Future<Directory>:] that completes | 92 * Renames this directory. Returns a [:Future<Directory>:] that completes |
97 * with a [Directory] instance for the renamed directory. | 93 * with a [Directory] instance for the renamed directory. |
98 * | 94 * |
99 * If newPath identifies an existing directory, that directory is | 95 * If newPath identifies an existing directory, that directory is |
100 * replaced. If newPath identifies an existing file, the operation | 96 * replaced. If newPath identifies an existing file, the operation |
101 * fails and the future completes with an exception. | 97 * fails and the future completes with an exception. |
102 */ | 98 */ |
103 Future<Directory> rename(String newPath); | 99 Future<Directory> rename(String newPath); |
104 | 100 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 if (path != null) { | 195 if (path != null) { |
200 sb.write(", path = $path"); | 196 sb.write(", path = $path"); |
201 } | 197 } |
202 } | 198 } |
203 return sb.toString(); | 199 return sb.toString(); |
204 } | 200 } |
205 final String message; | 201 final String message; |
206 final String path; | 202 final String path; |
207 final OSError osError; | 203 final OSError osError; |
208 } | 204 } |
OLD | NEW |