readBytes method

  1. @override
Future<Uint8List> readBytes(
  1. String locator
)
override

The bytes of the single-file artifact at locator.

Implementation

@override
Future<Uint8List> readBytes(String locator) async {
  final file = File(locator);
  if (!file.existsSync()) throw TomContainerNotFoundException(locator);
  final bytes = file.readAsBytesSync();
  tomRefuseLfsPointer(locator, p.basename(locator), bytes, remedy: lfsRemedy);
  return bytes;
}