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