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

Unified Diff: utils/pub/system_cache.dart

Issue 12253054: Get rid of join() and encapsulate File and Directory in io.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 7 years, 10 months 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 | « utils/pub/source.dart ('k') | utils/pub/validator/compiled_dartdoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/system_cache.dart
diff --git a/utils/pub/system_cache.dart b/utils/pub/system_cache.dart
index 377ac17fb801822823fb21fb3a7493d574a29b8f..8bd31786c8933e037701a711ce2ed12e4969dc99 100644
--- a/utils/pub/system_cache.dart
+++ b/utils/pub/system_cache.dart
@@ -7,6 +7,8 @@ library system_cache;
import 'dart:io';
import 'dart:async';
+import '../../pkg/path/lib/path.dart' as path;
+
import 'git_source.dart';
import 'hosted_source.dart';
import 'io.dart';
@@ -30,7 +32,7 @@ class SystemCache {
/// The root directory where this package cache is located.
final String rootDir;
- String get tempDir => join(rootDir, '_temp');
+ String get tempDir => path.join(rootDir, '_temp');
/// Packages which are currently being asynchronously installed to the cache.
final Map<PackageId, Future<Package>> _pendingInstalls;
@@ -105,7 +107,7 @@ class SystemCache {
/// cache so that it can move the directory from it.
String createTempDir() {
var temp = ensureDir(tempDir);
- return io.createTempDir(join(temp, 'dir'));
+ return io.createTempDir(path.join(temp, 'dir'));
}
/// Delete's the system cache's internal temp directory.
« no previous file with comments | « utils/pub/source.dart ('k') | utils/pub/validator/compiled_dartdoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698