| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 * [Link] objects are references to filesystem links. | 8 * [Link] objects are references to filesystem links. |
| 9 * | 9 * |
| 10 */ | 10 */ |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 /** | 57 /** |
| 58 * Updates the link. Returns a [:Future<Link>:] that completes with the | 58 * Updates the link. Returns a [:Future<Link>:] that completes with the |
| 59 * link when it has been updated. Calling [update] on a non-existing link | 59 * link when it has been updated. Calling [update] on a non-existing link |
| 60 * will complete its returned future with an exception. | 60 * will complete its returned future with an exception. |
| 61 * | 61 * |
| 62 * On the Windows platform, this will only work with directories, and the | 62 * On the Windows platform, this will only work with directories, and the |
| 63 * target directory must exist. | 63 * target directory must exist. |
| 64 */ | 64 */ |
| 65 Future<Link> update(String target); | 65 Future<Link> update(String target); |
| 66 | 66 |
| 67 Future<String> resolveSymbolicLinks(); | |
| 68 | |
| 69 String resolveSymbolicLinksSync(); | |
| 70 | |
| 71 /** | 67 /** |
| 72 * Renames this link. Returns a `Future<Link>` that completes | 68 * Renames this link. Returns a `Future<Link>` that completes |
| 73 * with a [Link] instance for the renamed link. | 69 * with a [Link] instance for the renamed link. |
| 74 * | 70 * |
| 75 * If [newPath] identifies an existing link, that link is | 71 * If [newPath] identifies an existing link, that link is |
| 76 * replaced. If [newPath] identifies an existing file or directory, | 72 * replaced. If [newPath] identifies an existing file or directory, |
| 77 * the operation fails and the future completes with an exception. | 73 * the operation fails and the future completes with an exception. |
| 78 */ | 74 */ |
| 79 Future<Link> rename(String newPath); | 75 Future<Link> rename(String newPath); |
| 80 | 76 |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 if (path != null) { | 324 if (path != null) { |
| 329 sb.write(", path = $path"); | 325 sb.write(", path = $path"); |
| 330 } | 326 } |
| 331 } | 327 } |
| 332 return sb.toString(); | 328 return sb.toString(); |
| 333 } | 329 } |
| 334 final String message; | 330 final String message; |
| 335 final String path; | 331 final String path; |
| 336 final OSError osError; | 332 final OSError osError; |
| 337 } | 333 } |
| OLD | NEW |