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

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

Issue 11364097: Allow Directory.create to create all missing path components. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload Created 8 years, 1 month 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/directory_impl.dart ('k') | tests/standalone/io/dart_std_io_pipe_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « sdk/lib/io/directory_impl.dart ('k') | tests/standalone/io/dart_std_io_pipe_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698