| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 /** | 58 /** |
| 59 * Updates the link. Returns a [:Future<Link>:] that completes with the | 59 * Updates the link. Returns a [:Future<Link>:] that completes with the |
| 60 * link when it has been updated. Calling [update] on a non-existing link | 60 * link when it has been updated. Calling [update] on a non-existing link |
| 61 * will complete its returned future with an exception. | 61 * will complete its returned future with an exception. |
| 62 * | 62 * |
| 63 * On the Windows platform, this will only work with directories, and the | 63 * On the Windows platform, this will only work with directories, and the |
| 64 * target directory must exist. | 64 * target directory must exist. |
| 65 */ | 65 */ |
| 66 Future<Link> update(String target); | 66 Future<Link> update(String target); |
| 67 | 67 |
| 68 Future<String> resolveSymbolicLinks(); |
| 69 |
| 70 String resolveSymbolicLinksSync(); |
| 71 |
| 68 /** | 72 /** |
| 69 * Renames this link. Returns a `Future<Link>` that completes | 73 * Renames this link. Returns a `Future<Link>` that completes |
| 70 * with a [Link] instance for the renamed link. | 74 * with a [Link] instance for the renamed link. |
| 71 * | 75 * |
| 72 * If [newPath] identifies an existing link, that link is | 76 * If [newPath] identifies an existing link, that link is |
| 73 * replaced. If [newPath] identifies an existing file or directory, | 77 * replaced. If [newPath] identifies an existing file or directory, |
| 74 * the operation fails and the future completes with an exception. | 78 * the operation fails and the future completes with an exception. |
| 75 */ | 79 */ |
| 76 Future<Link> rename(String newPath); | 80 Future<Link> rename(String newPath); |
| 77 | 81 |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 if (path != null) { | 322 if (path != null) { |
| 319 sb.write(", path = $path"); | 323 sb.write(", path = $path"); |
| 320 } | 324 } |
| 321 } | 325 } |
| 322 return sb.toString(); | 326 return sb.toString(); |
| 323 } | 327 } |
| 324 final String message; | 328 final String message; |
| 325 final String path; | 329 final String path; |
| 326 final OSError osError; | 330 final OSError osError; |
| 327 } | 331 } |
| OLD | NEW |