Open wengxianxun opened 1 year ago
.tgz is the same thing as .tar.gz. So, decode the gzip, then decode the tar.
Or you can use the tar_command extractFiles convenience function:
import 'package:archive/src/tar/tar_command.dart' as tar;
//...
string inputFilePath = 'file.tgz';
string outputPath = 'path_to_write_files';
tar.extractFiles(inputFilePath, outputPath);
how to decode .tgz file