findAll method

Stream<File> findAll({
  1. required String exclude,
})

Finds all .info files in the repo and returns them as a Stream.

exclude parameter is used to ignore the combined file.

Implementation

Stream<File> findAll({required String exclude}) {
  return Glob('**.info', recursive: true)
      .listFileSystem(LocalFileSystem(), root: repoPath)
      .where((FileSystemEntity file) => exclude != file.path)
      .map((FileSystemEntity file) => file as File);
}