how to decode .tgz file?
Opened this issue · 1 comments
wengxianxun commented
how to decode .tgz file
brendan-duncan commented
.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);