OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 /// Helper functionality to make working with IO easier. | 5 /// Helper functionality to make working with IO easier. |
6 library io; | 6 library io; |
7 | 7 |
8 import 'dart:async'; | 8 import 'dart:async'; |
9 import 'dart:io'; | 9 import 'dart:io'; |
10 import 'dart:isolate'; | 10 import 'dart:isolate'; |
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1028 /// Gets a [Directory] for [entry], which can either already be one, or be a | 1028 /// Gets a [Directory] for [entry], which can either already be one, or be a |
1029 /// [String]. | 1029 /// [String]. |
1030 Directory _getDirectory(entry) { | 1030 Directory _getDirectory(entry) { |
1031 if (entry is Directory) return entry; | 1031 if (entry is Directory) return entry; |
1032 return new Directory(entry); | 1032 return new Directory(entry); |
1033 } | 1033 } |
1034 | 1034 |
1035 /// Gets a [Uri] for [uri], which can either already be one, or be a [String]. | 1035 /// Gets a [Uri] for [uri], which can either already be one, or be a [String]. |
1036 Uri _getUri(uri) { | 1036 Uri _getUri(uri) { |
1037 if (uri is Uri) return uri; | 1037 if (uri is Uri) return uri; |
1038 return new Uri.fromString(uri); | 1038 return Uri.parse(uri); |
1039 } | 1039 } |
OLD | NEW |