getChildren method
Return a list of existing direct children Resource
s (folders and files)
in this folder, in no particular order.
On I/O errors, this will throw FileSystemException
.
Implementation
@override
List<Resource> getChildren() {
Iterable<Resource> children() sync* {
for (final entity in directory.listSync()) {
if (entity is io.File) {
yield entity.toAnalyzerFile(fileSystem);
} else if (entity is io.Directory) {
yield entity.toAnalyzerFolder(fileSystem);
}
}
}
return children().toList();
}