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); |