findFilesForPath method

Stream<File> findFilesForPath(
  1. Directory dir
)

Implementation

Stream<File> findFilesForPath(Directory dir) async* {
  await for (final entity in dir.list()) {
    if (entity is File) {
      yield entity;
    }

    if (entity is Directory) {
      yield* findFilesForPath(entity);
    }
  }
}