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 /** | 5 /** |
6 * Helper functionality to make working with IO easier. | 6 * Helper functionality to make working with IO easier. |
7 */ | 7 */ |
8 library io; | 8 library io; |
9 | 9 |
10 import 'dart:io'; | 10 import 'dart:io'; |
11 import 'dart:isolate'; | 11 import 'dart:isolate'; |
12 import 'dart:json'; | 12 import 'dart:json'; |
13 import 'dart:uri'; | 13 import 'dart:uri'; |
14 | 14 |
| 15 import '../../pkg/path/lib/path.dart' as path; |
15 import 'log.dart' as log; | 16 import 'log.dart' as log; |
16 import 'path.dart' as path; | |
17 import 'utils.dart'; | 17 import 'utils.dart'; |
18 | 18 |
19 bool _isGitInstalledCache; | 19 bool _isGitInstalledCache; |
20 | 20 |
21 /// The cached Git command. | 21 /// The cached Git command. |
22 String _gitCommandCache; | 22 String _gitCommandCache; |
23 | 23 |
24 final NEWLINE_PATTERN = new RegExp("\r\n?|\n\r?"); | 24 final NEWLINE_PATTERN = new RegExp("\r\n?|\n\r?"); |
25 | 25 |
26 /** | 26 /** |
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1017 return new Directory(entry); | 1017 return new Directory(entry); |
1018 } | 1018 } |
1019 | 1019 |
1020 /** | 1020 /** |
1021 * Gets a [Uri] for [uri], which can either already be one, or be a [String]. | 1021 * Gets a [Uri] for [uri], which can either already be one, or be a [String]. |
1022 */ | 1022 */ |
1023 Uri _getUri(uri) { | 1023 Uri _getUri(uri) { |
1024 if (uri is Uri) return uri; | 1024 if (uri is Uri) return uri; |
1025 return new Uri.fromString(uri); | 1025 return new Uri.fromString(uri); |
1026 } | 1026 } |
OLD | NEW |