Index: sdk/lib/io/path_impl.dart |
diff --git a/sdk/lib/io/path_impl.dart b/sdk/lib/io/path_impl.dart |
index 8e05d447da84ec9ac2f33d69d771b389af2d165d..58e7ce3abb261a3e45d08e72993310e0ab6a20fa 100644 |
--- a/sdk/lib/io/path_impl.dart |
+++ b/sdk/lib/io/path_impl.dart |
@@ -189,7 +189,7 @@ class _Path implements Path { |
if (Platform.operatingSystem == 'windows') { |
String nativePath = _path; |
// Drop '/' before a drive letter. |
- if (nativePath.length > 3 && |
+ if (nativePath.length >= 3 && |
nativePath.startsWith('/') && |
Søren Gjesse
2012/11/06 10:45:26
Now that you are at it maybe check that nativePath
Mads Ager (google)
2012/11/06 15:00:35
Not sure we have to. If you use this and it doesn'
|
nativePath[2] == ':') { |
nativePath = nativePath.substring(1); |