readStream method

Stream<List<int>> readStream(
  1. String path
)

The file at path, in chunks, without loading it all into memory.

Implementation

Stream<List<int>> readStream(String path) async* {
  _startPrune();
  try {
    yield* driver.readStream(_resolve(path));
  } on DiskException catch (error) {
    throw error.relocate(name, path);
  } on FileSystemException catch (error) {
    throw _fileSystemError(path, error);
  }
}