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

Unified Diff: utils/pub/validator/lib.dart

Issue 12255016: Get rid of old redundant methods in io.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise and update to latest. 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/validator/directory.dart ('k') | utils/pub/validator/license.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/validator/lib.dart
diff --git a/utils/pub/validator/lib.dart b/utils/pub/validator/lib.dart
index 7346223ebaf27a68231d6330af382a763bfcf87f..c72d309c25e270d7e4a03b8455d4da1997eec281 100644
--- a/utils/pub/validator/lib.dart
+++ b/utils/pub/validator/lib.dart
@@ -7,6 +7,8 @@ library lib_validator;
import 'dart:async';
import 'dart:io';
+import '../../../pkg/path/lib/path.dart' as path;
+
import '../entrypoint.dart';
import '../io.dart';
import '../system_cache.dart';
@@ -31,7 +33,7 @@ class LibValidator extends Validator {
}
return listDir(libDir).then((files) {
- files = files.map((file) => relativeTo(file, libDir)).toList();
+ files = files.map((file) => path.relative(file, from: libDir)).toList();
if (files.isEmpty) {
errors.add('You must have a non-empty "lib" directory.\n'
"Without that, users cannot import any code from your package.");
« no previous file with comments | « utils/pub/validator/directory.dart ('k') | utils/pub/validator/license.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698