| Index: pkg/docgen/lib/src/io.dart
|
| diff --git a/pkg/docgen/lib/src/io.dart b/pkg/docgen/lib/src/io.dart
|
| index f02272a077ee707318e67c93ccb3ba9321880d8c..96dad80a7fc483e899f930ada252f31d50dca51a 100644
|
| --- a/pkg/docgen/lib/src/io.dart
|
| +++ b/pkg/docgen/lib/src/io.dart
|
| @@ -13,13 +13,14 @@ import 'dart:collection';
|
| import 'dart:io';
|
| import 'package:path/path.dart' as path;
|
|
|
| -/// Lists the contents of [dir]. If [recursive] is `true`, lists subdirectory
|
| -/// contents (defaults to `false`). If [includeHidden] is `true`, includes files
|
| -/// and directories beginning with `.` (defaults to `false`).
|
| +/// Lists the contents of [dir].
|
| +///
|
| +/// If [recursive] is `true`, lists subdirectory contents (defaults to `false`).
|
| +///
|
| +/// Excludes files and directories beginning with `.`
|
| ///
|
| /// The returned paths are guaranteed to begin with [dir].
|
| -List<String> listDir(String dir, {bool recursive: false,
|
| - bool includeHidden: false}) {
|
| +List<String> listDir(String dir, {bool recursive: false}) {
|
| List<String> doList(String dir, Set<String> listedDirectories) {
|
| var contents = <String>[];
|
|
|
| @@ -32,7 +33,7 @@ List<String> listDir(String dir, {bool recursive: false,
|
|
|
| var children = <String>[];
|
| for (var entity in new Directory(dir).listSync()) {
|
| - if (!includeHidden && path.basename(entity.path).startsWith('.')) {
|
| + if (path.basename(entity.path).startsWith('.')) {
|
| continue;
|
| }
|
|
|
|
|