archive icon indicating copy to clipboard operation
archive copied to clipboard

how to decode .tgz file?

Open wengxianxun opened this issue 1 year ago • 1 comments

how to decode .tgz file

wengxianxun avatar Apr 12 '23 06:04 wengxianxun

.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);

brendan-duncan avatar Apr 13 '23 05:04 brendan-duncan