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

Unified Diff: pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart

Issue 766793004: Fix the async compiler, and pub's async compiler test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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/scheduled_test/CHANGELOG.md ('k') | pkg/scheduled_test/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart
diff --git a/pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart b/pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart
index 93f68a6f62fcbe53cb79efd037f169ac658359be..9d7a299956a3a9ecac8ac7472c2d15c50326ebd9 100644
--- a/pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart
+++ b/pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart
@@ -31,6 +31,9 @@ class DirectoryDescriptor extends Descriptor implements LoadableDescriptor {
/// as this descriptor is constructed.
DirectoryDescriptor.fromFilesystem(String name, String path)
: this(name, new Directory(path).listSync().map((entity) {
+ // Ignore hidden files.
+ if (p.basename(entity.path).startsWith(".")) return null;
+
if (entity is Directory) {
return new DirectoryDescriptor.fromFilesystem(
p.basename(entity.path), entity.path);
@@ -39,7 +42,7 @@ class DirectoryDescriptor extends Descriptor implements LoadableDescriptor {
p.basename(entity.path), entity.readAsBytesSync());
}
// Ignore broken symlinks.
- }));
+ }).where((path) => path != null));
Future create([String parent]) => schedule(() {
if (parent == null) parent = defaultRoot;
« no previous file with comments | « pkg/scheduled_test/CHANGELOG.md ('k') | pkg/scheduled_test/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698