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

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

Issue 23658048: Revert "dart:io | Change File.fullPath to FileSystemEntity.resolveSymbolicLinks." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 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
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
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 }
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