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

Unified Diff: pkg/glob/lib/src/list_tree.dart

Issue 607963002: Fix glob list on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | « pkg/glob/lib/src/ast.dart ('k') | pkg/glob/lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/glob/lib/src/list_tree.dart
diff --git a/pkg/glob/lib/src/list_tree.dart b/pkg/glob/lib/src/list_tree.dart
index fea2b9812c3aaeb1ea6ce0df6bdbe5d2f7842431..44eaaf39ad3ecda0d94d193fad0cc13453683cfd 100644
--- a/pkg/glob/lib/src/list_tree.dart
+++ b/pkg/glob/lib/src/list_tree.dart
@@ -11,6 +11,7 @@ import 'package:path/path.dart' as p;
import 'ast.dart';
import 'stream_pool.dart';
+import 'utils.dart';
/// A structure built from a glob that efficiently lists filesystem entities
/// that match that glob.
@@ -371,7 +372,7 @@ class _ListTreeNode {
/// Returns whether the native [path] matches [_validator].
bool _matches(String path) {
if (_validator == null) return false;
- return _validator.matches(path);
+ return _validator.matches(toPosixPath(p.context, path));
}
String toString() => "($_validator) $children";
« no previous file with comments | « pkg/glob/lib/src/ast.dart ('k') | pkg/glob/lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698