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

Unified Diff: utils/pub/validator/directory.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/compiled_dartdoc.dart ('k') | utils/pub/validator/lib.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/validator/directory.dart
diff --git a/utils/pub/validator/directory.dart b/utils/pub/validator/directory.dart
index 6ab932ca64224ac591826a9de4c575231545093c..1d1c2b8976600d47c90b9b3aa5bb2597ca2388d2 100644
--- a/utils/pub/validator/directory.dart
+++ b/utils/pub/validator/directory.dart
@@ -6,6 +6,8 @@ library directory_validator;
import 'dart:async';
+import '../../../pkg/path/lib/path.dart' as path;
+
import '../entrypoint.dart';
import '../io.dart';
import '../utils.dart';
@@ -23,7 +25,7 @@ class DirectoryValidator extends Validator {
for (var dir in dirs) {
if (!dirExists(dir)) continue;
- dir = basename(dir);
+ dir = path.basename(dir);
if (_PLURAL_NAMES.contains(dir)) {
// Cut off the "s"
var singularName = dir.substring(0, dir.length - 1);
« no previous file with comments | « utils/pub/validator/compiled_dartdoc.dart ('k') | utils/pub/validator/lib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698