Skip to content
Snippets Groups Projects
Commit 96b51c85 authored by nweiz@google.com's avatar nweiz@google.com
Browse files

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
parent 7525464c
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment