1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:37:35 +00:00

LibTar: Implement TarOutputStream

This output stream creates gnu format tar archives
and currently only supports files and directories.
This commit is contained in:
Idan Horowitz 2021-03-13 01:40:04 +02:00 committed by Andreas Kling
parent 6c1322bdc7
commit 7eab20bad0
4 changed files with 116 additions and 16 deletions

View file

@ -78,7 +78,7 @@ int main(int argc, char** argv)
InputStream& file_input_stream = file_stream;
InputStream& gzip_input_stream = gzip_stream;
Tar::TarStream tar_stream((gzip) ? gzip_input_stream : file_input_stream);
Tar::TarInputStream tar_stream((gzip) ? gzip_input_stream : file_input_stream);
if (!tar_stream.valid()) {
warnln("the provided file is not a well-formatted ustar file");
return 1;