Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: sdk/lib/io/link.dart

Issue 23444037: dart:io | Change File.fullPath to FileSystemEntity.resolveSymbolicLinks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Documentation edits. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
67 /** 71 /**
68 * Renames this link. Returns a `Future<Link>` that completes 72 * Renames this link. Returns a `Future<Link>` that completes
69 * with a [Link] instance for the renamed link. 73 * with a [Link] instance for the renamed link.
70 * 74 *
71 * If [newPath] identifies an existing link, that link is 75 * If [newPath] identifies an existing link, that link is
72 * replaced. If [newPath] identifies an existing file or directory, 76 * replaced. If [newPath] identifies an existing file or directory,
73 * the operation fails and the future completes with an exception. 77 * the operation fails and the future completes with an exception.
74 */ 78 */
75 Future<Link> rename(String newPath); 79 Future<Link> rename(String newPath);
76 80
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 if (path != null) { 317 if (path != null) {
314 sb.write(", path = $path"); 318 sb.write(", path = $path");
315 } 319 }
316 } 320 }
317 return sb.toString(); 321 return sb.toString();
318 } 322 }
319 final String message; 323 final String message;
320 final String path; 324 final String path;
321 final OSError osError; 325 final OSError osError;
322 } 326 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698