crawl method
Implementation
Stream<GitHubFile> crawl() async* {
Stream<GitHubFile> scan(String path) async* {
final contents = await github.repositories.getContents(slug, path);
for (final content in contents.tree!) {
if (content.type == 'dir') {
yield* scan(content.path!);
} else {
yield content;
}
}
}
yield* scan('/');
}