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

Unified Diff: sdk/lib/io/link.dart

Issue 14907009: dart:io | Tiny change to Link.exists(). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix static type errors in new test for dartc analyzer. Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/io/file_system_entity.dart ('k') | tests/standalone/io/file_invalid_arguments_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/link.dart
diff --git a/sdk/lib/io/link.dart b/sdk/lib/io/link.dart
index bfe0cdc96a17ba154224026bbfba418de8c3d0c0..bb64fe96faad82c9aa0fcbdcb5dd6857f3bf3214 100644
--- a/sdk/lib/io/link.dart
+++ b/sdk/lib/io/link.dart
@@ -128,10 +128,7 @@ class _Link extends FileSystemEntity implements Link {
String toString() => "Link: '$path'";
- Future<bool> exists() {
- // TODO(whesse): Replace with asynchronous version.
- return new Future.value(existsSync());
- }
+ Future<bool> exists() => FileSystemEntity.isLink(path);
bool existsSync() => FileSystemEntity.isLinkSync(path);
« no previous file with comments | « sdk/lib/io/file_system_entity.dart ('k') | tests/standalone/io/file_invalid_arguments_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698