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

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

Issue 23480093: Recommit add FileSystemEntity.resolveSymbolicLinks (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix assertion failure on Windows 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
« no previous file with comments | « sdk/lib/io/file_system_entity.dart ('k') | tests/standalone/io/file_error_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « sdk/lib/io/file_system_entity.dart ('k') | tests/standalone/io/file_error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698