From 96b51c85f995ad704ca7b76976ca94c58372552f Mon Sep 17 00:00:00 2001
From: "nweiz@google.com" <nweiz@google.com>
Date: Wed, 27 Mar 2013 20:53:25 +0000
Subject: [PATCH] Work around issue 9278.

Review URL: https://codereview.chromium.org//12907030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@20577 260f80e4-7a28-3924-810f-c04153c831b5
---
 lib/src/io.dart | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lib/src/io.dart b/lib/src/io.dart
index a32c4714..59172c89 100644
--- a/lib/src/io.dart
+++ b/lib/src/io.dart
@@ -201,7 +201,12 @@ bool dirExists(String dir) => new Directory(dir).existsSync();
 void deleteEntry(String path) {
   if (linkExists(path)) {
     log.io("Deleting link $path.");
-    new Link(path).deleteSync();
+    if (Platform.operatingSystem == 'windows') {
+      // TODO(nweiz): remove this when issue 9278 is fixed.
+      new Directory(path).deleteSync();
+    } else {
+      new Link(path).deleteSync();
+    }
   } else if (dirExists(path)) {
     log.io("Deleting directory $path.");
     new Directory(path).deleteSync(recursive: true);
-- 
GitLab