Index: utils/pub/io.dart |
diff --git a/utils/pub/io.dart b/utils/pub/io.dart |
index 2546827361cc495ebec8637ef722e57494d38f40..59aa7b43dc28ee6842d8612838ac5afb2a5a9622 100644 |
--- a/utils/pub/io.dart |
+++ b/utils/pub/io.dart |
@@ -785,7 +785,8 @@ InputStream createTarGz(List contents, {baseDir}) { |
if (!isBeneath(entry, baseDir)) { |
throw 'Entry $entry is not inside $baseDir.'; |
} |
- return new Path(entry).relativeTo(new Path(baseDir)).toNativePath(); |
+ return new Path.fromNative(entry).relativeTo(new Path.fromNative(baseDir)) |
+ .toNativePath(); |
}); |
if (Platform.operatingSystem != "windows") { |