Future _uncompress()

in packages/web_drivers/lib/chrome_driver_installer.dart [174:187]


  Future<void> _uncompress() async {
    final io.ProcessResult unzipResult = await io.Process.run('unzip', <String>[
      driverDownload!.path,
      '-d',
      driverDir.path,
    ]);

    if (unzipResult.exitCode != 0) {
      throw Exception(
          'Failed to unzip the downloaded Chrome driver ${driverDownload!.path}.\n'
          'With the driver path ${driverDir.path}\n'
          'The unzip process exited with code ${unzipResult.exitCode}.');
    }
  }